libkonq
#include <konq_dndpopupmenuplugin.h>
Public Member Functions | |
KonqDndPopupMenuPlugin (QObject *parent) | |
virtual | ~KonqDndPopupMenuPlugin () |
virtual void | setup (const KFileItemListProperties &popupMenuInfo, KUrl destination, QList< QAction * > &pluginActions)=0 |
Detailed Description
Base class for drag and drop popup menus.
This can be used for adding dynamic menu items to the normal copy/move/link here menu appearing in dolphin/konqueror. In the setup-method you may check the properties of the dropped files, and if applicable, append your own QAction that the user may trigger in the menu.
Definition at line 40 of file konq_dndpopupmenuplugin.h.
Constructor & Destructor Documentation
KonqDndPopupMenuPlugin::KonqDndPopupMenuPlugin | ( | QObject * | parent | ) |
Constructor.
Definition at line 21 of file konq_dndpopupmenuplugin.cpp.
|
virtual |
Definition at line 26 of file konq_dndpopupmenuplugin.cpp.
Member Function Documentation
|
pure virtual |
Implement the setup method in the plugin in order to create actions in the given actionCollection and add it to the menu using menu->addAction().
- Parameters
-
popupMenuInfo all the information about the popupmenu being shown (which file items, their common mimetype, etc.) destination the URL to where the file(s) were dropped pluginActions a QList with the QActions that will be plugged into the menu.
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.