X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/bffb1c4d60694a63561e7063b8895d035ba52564..16a3aea6a629a91aab937be5c111b64b3ed6cf86:/src/dolphincontextmenu.h diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h index f67300dc1..bf0cf2c97 100644 --- a/src/dolphincontextmenu.h +++ b/src/dolphincontextmenu.h @@ -20,13 +20,11 @@ #ifndef DOLPHINCONTEXTMENU_H #define DOLPHINCONTEXTMENU_H -#include -#include #include -#include - - +#include +#include +#include class QAction; class DolphinMainWindow; @@ -74,7 +72,7 @@ public: const KFileItem& fileInfo, const QUrl& baseUrl); - virtual ~DolphinContextMenu(); + ~DolphinContextMenu() override; void setCustomActions(const QList& actions); @@ -89,8 +87,8 @@ public: Command open(); protected: - virtual void keyPressEvent(QKeyEvent *ev) Q_DECL_OVERRIDE; - virtual void keyReleaseEvent(QKeyEvent *ev) Q_DECL_OVERRIDE; + void keyPressEvent(QKeyEvent *ev) override; + void keyReleaseEvent(QKeyEvent *ev) override; private: void openTrashContextMenu(); @@ -118,15 +116,9 @@ private: KFileItem baseFileItem(); /** - * Adds actions that have been installed as service-menu. - * (see http://techbase.kde.org/index.php?title=Development/Tutorials/Creating_Konqueror_Service_Menus) - */ - void addServiceActions(KFileItemActions& fileItemActions); - - /** - * Adds actions that are provided by a KFileItemActionPlugin. + * Adds "Open With" actions */ - void addFileItemPluginActions(KFileItemActions& fileItemActions); + void addOpenWithActions(KFileItemActions& fileItemActions); /** * Adds actions that are provided by a KVersionControlPlugin.