libkonq
#include <konq_copytomenu.h>
Public Member Functions | |
KonqCopyToMenu () | |
KonqCopyToMenu (QWidget *parentWidget) | |
~KonqCopyToMenu () | |
void | addActionsTo (QMenu *menu) |
void | setItems (const KFileItemList &items) |
void | setReadOnly (bool ro) |
void | setUrls (const KUrl::List &urls) |
Detailed Description
This class adds "Copy To" and "Move To" submenus to a popupmenu.
Definition at line 34 of file konq_copytomenu.h.
Constructor & Destructor Documentation
KonqCopyToMenu::KonqCopyToMenu | ( | ) |
Creates a KonqCopyToMenu instance.
Note that this instance must stay alive for at least as long as the popupmenu; it has the slots for the actions created by addActionsTo.
- Deprecated:
- KDE5: remove, so that passing a parent widget is mandatory
Definition at line 45 of file konq_copytomenu.cpp.
KonqCopyToMenu::KonqCopyToMenu | ( | QWidget * | parentWidget | ) |
Creates a KonqCopyToMenu instance, with a parent widget for the file dialog and message boxes.
Note that this instance (and the widget) must stay alive for at least as long as the popupmenu; it has the slots for the actions created by addActionsTo.
- Parameters
-
widget note that this is not the parent of KonqCopyToMenu itself.
- Since
- 4.2
Definition at line 50 of file konq_copytomenu.cpp.
KonqCopyToMenu::~KonqCopyToMenu | ( | ) |
Destructor.
Definition at line 55 of file konq_copytomenu.cpp.
Member Function Documentation
void KonqCopyToMenu::addActionsTo | ( | QMenu * | menu | ) |
Generate the actions and submenus, and adds them to the menu
.
All actions are created as children of the menu.
Definition at line 79 of file konq_copytomenu.cpp.
void KonqCopyToMenu::setItems | ( | const KFileItemList & | items | ) |
Sets the list of fileitems which the actions apply to.
Either call this or setUrls.
Definition at line 60 of file konq_copytomenu.cpp.
void KonqCopyToMenu::setReadOnly | ( | bool | ro | ) |
If setReadOnly(true) is called, the "Move To" submenu will not appear.
Definition at line 74 of file konq_copytomenu.cpp.
void KonqCopyToMenu::setUrls | ( | const KUrl::List & | urls | ) |
Sets the URLs which the actions apply to.
Either call this or setItems.
Definition at line 69 of file konq_copytomenu.cpp.
The documentation for this class was generated from the following files:
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.