diff options
| author | Nerdopolis Turfwalker <[email protected]> | 2018-06-02 16:38:01 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2018-06-02 16:39:42 +0200 |
| commit | 97801e2cdb22411de58d2c67f8b82b466f8dff82 (patch) | |
| tree | a43fcd5f697b9e8a51603e323e745064e6af8706 /src/dolphincontextmenu.cpp | |
| parent | 621cd24acfec8cbed19e9aa6ff8650cd6f38f809 (diff) | |
Add 'Sort By' and 'View Mode' into Dolphin file context menus
Summary: This adds the 'Sort By' and 'View Mode' options into the context menu of Dolphin within the file browser. I keep looking for these option (especially sort by) in the Context Menu, and keep forgetting to go to the menu. It also makes the order of "View Mode" and "Sort By" options consistent in the control menu
Test Plan: Made sure that the options appeared when right clicking on an empty space.
Reviewers: #dolphin, ngraham, elvisangelaccio
Reviewed By: #dolphin, ngraham, elvisangelaccio
Subscribers: question, markg, elvisangelaccio, mmustac, rkflx, ngraham, kfm-devel, #dolphin
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D12911
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index a6e465f2a..7d7d7a408 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -363,6 +363,12 @@ void DolphinContextMenu::openViewportContextMenu() addAction(pasteAction); addSeparator(); + // Insert 'Sort By' and 'View Mode' + addAction(m_mainWindow->actionCollection()->action(QStringLiteral("sort"))); + addAction(m_mainWindow->actionCollection()->action(QStringLiteral("view_mode"))); + + addSeparator(); + // Insert service actions fileItemActions.addServiceActionsTo(this); fileItemActions.addPluginActionsTo(this); |
