┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinviewactionhandler.cpp
diff options
context:
space:
mode:
authorJin Liu <[email protected]>2025-04-10 12:38:20 +0800
committerJin Liu <[email protected]>2025-04-16 06:24:46 +0000
commit2eb009455bec2fcdbd394a276ce40b3ff5efc35f (patch)
tree651f2101d4540d48ee9928946ddab4534ff2cafc /src/views/dolphinviewactionhandler.cpp
parent676c7fee62a42605d8f896be1089158159a8003c (diff)
Revert dd07a327 Move "Show in Groups" toggle action into Sort menu
Now it's in the first level of the "View Settings" dropdown, no need to be nested in the "Sort" menu.
Diffstat (limited to 'src/views/dolphinviewactionhandler.cpp')
-rw-r--r--src/views/dolphinviewactionhandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp
index b7c21c8b9..079cd22fd 100644
--- a/src/views/dolphinviewactionhandler.cpp
+++ b/src/views/dolphinviewactionhandler.cpp
@@ -309,17 +309,11 @@ void DolphinViewActionHandler::createActions(SelectionMode::ActionTextHelper *ac
m_currentView->setSortOrder(Qt::DescendingOrder);
});
- KToggleAction *showInGroups = m_actionCollection->add<KToggleAction>(QStringLiteral("show_in_groups"));
- showInGroups->setText(i18nc("@action:inmenu View", "Show in Groups"));
- showInGroups->setWhatsThis(i18nc("@info:whatsthis", "This groups files and folders by their first letter."));
- connect(showInGroups, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleGroupedSorting);
-
sortByActionMenu->addAction(ascendingAction);
sortByActionMenu->addAction(descendingAction);
sortByActionMenu->addSeparator();
sortByActionMenu->addAction(sortFoldersFirst);
sortByActionMenu->addAction(sortHiddenLast);
- sortByActionMenu->addAction(showInGroups);
// View -> Additional Information
QActionGroup *visibleRolesGroup = createFileItemRolesActionGroup(QStringLiteral("show_"));
@@ -334,6 +328,12 @@ void DolphinViewActionHandler::createActions(SelectionMode::ActionTextHelper *ac
visibleRolesMenu->addAction(action);
}
+ KToggleAction *showInGroups = m_actionCollection->add<KToggleAction>(QStringLiteral("show_in_groups"));
+ showInGroups->setIcon(QIcon::fromTheme(QStringLiteral("view-group")));
+ showInGroups->setText(i18nc("@action:inmenu View", "Show in Groups"));
+ showInGroups->setWhatsThis(i18nc("@info:whatsthis", "This groups files and folders by their first letter."));
+ connect(showInGroups, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleGroupedSorting);
+
KToggleAction *showHiddenFiles = m_actionCollection->add<KToggleAction>(QStringLiteral("show_hidden_files"));
showHiddenFiles->setIcon(QIcon::fromTheme(QStringLiteral("view-visible")));
showHiddenFiles->setText(i18nc("@action:inmenu View", "Show Hidden Files"));