]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincontextmenu.h
- allow the view implementations to attach custom actions to the context menu
[dolphin.git] / src / dolphincontextmenu.h
index 4d8fe0c4379b01053f2e7d2c778bbc0e29278ff8..a660f0500934f06587526e44d8400039a7f7b099 100644 (file)
@@ -68,6 +68,8 @@ public:
 
     virtual ~DolphinContextMenu();
 
+    void setCustomActions(const QList<QAction*>& actions);
+
     /** Opens the context menu model. */
     void open();
 
@@ -94,6 +96,7 @@ private:
 
 private:
     KonqFileItemCapabilities& capabilities();
+    void addCustomActions(KMenu* menu);
 
 private:
     struct Entry
@@ -121,6 +124,7 @@ private:
     KUrl::List m_selectedUrls;
     int m_context;
     KonqCopyToMenu m_copyToMenu;
+    QList<QAction*> m_customActions;
 };
 
 #endif