libkonq
konq_copytomenu.cpp
Go to the documentation of this file.
83 mainCopyMenu->menuAction()->setObjectName( QLatin1String("copyTo_submenu" )); // for the unittest
89 mainMoveMenu->menuAction()->setObjectName( QLatin1String("moveTo_submenu" )); // for the unittest
96 KonqCopyToMainMenu::KonqCopyToMainMenu(QMenu* parent, KonqCopyToMenuPrivate* _d, MenuType menuType)
155 KAction* browseAction = new KAction(i18nc("@title:menu in Copy To or Move To submenu", "Browse..."), this);
159 addSeparator(); // looks like Qt4 handles removing it automatically if it's last in the menu, nice.
165 const QString text = KStringHandler::csqueeze(url.pathOrUrl(), 60); // shorten very long paths (#61386)
194 if (!recentDirs.contains(niceDest)) { // don't change position if already there, moving stuff is bad usability
216 KonqCopyToDirectoryMenu::KonqCopyToDirectoryMenu(QMenu* parent, KonqCopyToMainMenu* mainMenu, const QString& path)
233 addSeparator(); // looks like Qt4 handles removing it automatically if it's last in the menu, nice.
240 const QStringList entries = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::LocaleAware);
void setReadOnly(bool ro)
If setReadOnly(true) is called, the "Move To" submenu will not appear.
Definition: konq_copytomenu.cpp:74
Definition: konq_operations.h:56
KonqCopyToMainMenu(QMenu *parent, KonqCopyToMenuPrivate *d, MenuType menuType)
Definition: konq_copytomenu.cpp:96
Definition: konq_copytomenu_p.h:42
static void copy(QWidget *parent, Operation method, const KUrl::List &selectedUrls, const KUrl &destUrl)
Copy the selectedUrls to the destination destUrl.
Definition: konq_operations.cpp:171
Definition: konq_copytomenu_p.h:28
KonqCopyToMenuPrivate(QWidget *parentWidget=0)
Definition: konq_copytomenu.cpp:38
void addActionsTo(QMenu *menu)
Generate the actions and submenus, and adds them to the menu.
Definition: konq_copytomenu.cpp:79
KonqCopyToDirectoryMenu(QMenu *parent, KonqCopyToMainMenu *mainMenu, const QString &path)
Definition: konq_copytomenu.cpp:216
void setUrls(const KUrl::List &urls)
Sets the URLs which the actions apply to.
Definition: konq_copytomenu.cpp:69
Definition: konq_copytomenu_p.h:67
Definition: konq_operations.h:56
void setItems(const KFileItemList &items)
Sets the list of fileitems which the actions apply to.
Definition: konq_copytomenu.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.