]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincontextmenu.h
forwardport r757231
[dolphin.git] / src / dolphincontextmenu.h
index f551bfcb3a518ceb0b0b403396d6b520fe780ad0..c9099925231ed90437e8ad40caf1f4b597c687e4 100644 (file)
@@ -90,16 +90,6 @@ private:
     QList<QAction*> insertOpenWithItems(KMenu* popup,
                                         QVector<KService::Ptr>& openWithVector);
 
-    /**
-     * Inserts the 'Actions...' submenu to \a popup.
-     * @param popup          Menu where the 'Actions...' sub menu should
-     *                       be added.
-     * @param openWithVector Output parameter which contains all 'Actions...'
-     *                       services.
-     */
-    QList<QAction*> insertActionItems(KMenu* popup,
-                                      QVector<KDesktopFileActions::Service>& actionsVector);
-
     /**
      * Returns true, if 'menu' contains already
      * an entry with the name 'entryName'.
@@ -107,6 +97,12 @@ private:
     bool containsEntry(const KMenu* menu,
                        const QString& entryName) const;
 
+    /**
+     * Adds the "Show menubar" action to the menu if the
+     * menubar is hidden.
+     */
+    void addShowMenubarAction(KMenu* menu);
+
 private:
     struct Entry
     {