libkonq
KonqCopyToMenu Class Reference
#include <konq_copytomenu.h>
Detailed Description
This class adds "Copy To" and "Move To" submenus to a popupmenu.Definition at line 34 of file konq_copytomenu.h.
Public Member Functions | |
void | addActionsTo (QMenu *menu) |
KonqCopyToMenu () | |
void | setItems (const KFileItemList &items) |
void | setReadOnly (bool ro) |
void | setUrls (const KUrl::List &urls) |
~KonqCopyToMenu () |
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.
Definition at line 41 of file konq_copytomenu.cpp.
KonqCopyToMenu::~KonqCopyToMenu | ( | ) |
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 71 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 52 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 66 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 61 of file konq_copytomenu.cpp.
The documentation for this class was generated from the following files: