]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincontextmenu.h
The filenamesearch ioslave has been moved to kio-extras, remove it from Dolphin.
[dolphin.git] / src / dolphincontextmenu.h
index 160f088040190ee3a2db4ebdb5957eee9f12fc6b..f082e1c6caaee83b5658ac19a044d3caeffe3783 100644 (file)
 #define DOLPHINCONTEXTMENU_H
 
 #include <KFileItem>
-#include <KService>
 #include <KUrl>
 #include <konq_copytomenu.h>
-#include <KMenu>
+#include <QMenu>
 
-#include <QObject>
 
-#include <QVector>
 
-#include <QScopedPointer>
 
 class QAction;
 class DolphinMainWindow;
@@ -50,7 +46,7 @@ class DolphinRemoveAction;
  * - 'Actions':   Contains all actions which can be applied to the
  *                given item.
  */
-class DolphinContextMenu : public KMenu
+class DolphinContextMenu : public QMenu
 {
     Q_OBJECT
 
@@ -58,6 +54,7 @@ public:
     enum Command
     {
         None,
+        OpenParentFolder,
         OpenParentFolderInNewWindow,
         OpenParentFolderInNewTab
     };
@@ -101,7 +98,7 @@ private:
     void openItemContextMenu();
     void openViewportContextMenu();
 
-    void insertDefaultItemActions();
+    void insertDefaultItemActions(const KFileItemListProperties&);
 
     /**
      * Adds the "Show menubar" action to the menu if the