┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.h
diff options
context:
space:
mode:
authorAlexander Lohnau <[email protected]>2020-11-22 22:19:21 +0100
committerElvis Angelaccio <[email protected]>2020-11-23 21:58:36 +0000
commitc3b238bbe924f5c58496407ceb9f90c88c0738fa (patch)
tree21c97f07d7b56617a4f726ff2b4c8d1e67ccb2d4 /src/dolphincontextmenu.h
parentb62095950a8f0ed6d7359fd9b5e381dfdd2ac4d1 (diff)
Move repetitive contextmenu related logic in one place
This makes a bit easier to handle the stuff. Also we don't need the `addVersionControlPluginActions` utility method and we can put it in the new utility method instead.
Diffstat (limited to 'src/dolphincontextmenu.h')
-rw-r--r--src/dolphincontextmenu.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h
index b93df2b61..523c0555a 100644
--- a/src/dolphincontextmenu.h
+++ b/src/dolphincontextmenu.h
@@ -108,17 +108,17 @@ private:
void addOpenWithActions(KFileItemActions& fileItemActions);
/**
- * Adds actions that are provided by a KVersionControlPlugin.
- */
- void addVersionControlPluginActions();
-
- /**
* Adds custom actions e.g. like the "[x] Expandable Folders"-action
* provided in the details view.
*/
void addCustomActions();
private:
+ /**
+ * Add services, custom actions, plugins and version control items to the menu
+ */
+ void addAdditionalActions(KFileItemActions &fileItemActions, const KFileItemListProperties &props);
+
struct Entry
{
int type;