┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.h
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2019-11-29 17:59:21 +0100
committerMéven Car <[email protected]>2019-12-02 13:24:36 +0100
commit8b0c12a59ccb23fdb6393f640693d21afaeb02a1 (patch)
tree0f766319324942b95869c05f1297e7867ea9a314 /src/dolphincontextmenu.h
parent89d53b98c73586586e1f4156866fd60df9812761 (diff)
Refactoring to reduce size of openItemContextMenu and add the ContextType TimelineOrSearchContext
Reviewers: #dolphin, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D25615
Diffstat (limited to 'src/dolphincontextmenu.h')
-rw-r--r--src/dolphincontextmenu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h
index bf0cf2c97..3f36895ec 100644
--- a/src/dolphincontextmenu.h
+++ b/src/dolphincontextmenu.h
@@ -146,7 +146,9 @@ private:
{
NoContext = 0,
ItemContext = 1,
- TrashContext = 2
+ TrashContext = 2,
+ TimelineContext = 4,
+ SearchContext = 8,
};
QPoint m_pos;
@@ -167,6 +169,8 @@ private:
Command m_command;
DolphinRemoveAction* m_removeAction; // Action that represents either 'Move To Trash' or 'Delete'
+ void addDirectoryItemContextMenu(KFileItemActions &fileItemActions);
+
};
#endif