┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2025-09-24 14:16:44 +0200
committerMéven Car <[email protected]>2025-09-26 11:21:21 +0200
commit4b7d49dfca757e28a659bd01614b8f3ee3a03fc0 (patch)
tree96ea688f769f37b81776f4da1b7cedc478705c52 /src
parent7eb1696a32891ce4f1f0e44c590a7fdb7c55fecd (diff)
dolphinviewactionhandler: Improve text for roles actions
So that when those actions appear in toolbars or shortcut configuration, users can know what they correspond to.
Diffstat (limited to 'src')
-rw-r--r--src/views/dolphinviewactionhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp
index de3facd14..b8c5fafed 100644
--- a/src/views/dolphinviewactionhandler.cpp
+++ b/src/views/dolphinviewactionhandler.cpp
@@ -431,7 +431,8 @@ QActionGroup *DolphinViewActionHandler::createFileItemRolesActionGroup(const QSt
action->setActionGroup(groupMenuGroup);
groupMenu->addAction(action);
}
- action->setText(info.translation);
+ action->setText(isSortGroup ? i18nc("@action:intoolbar as in sort by file attribute", "Sort By: %1", info.translation)
+ : i18nc("@action:intoolbar as in show field for file attribute", "Show Field: %1", info.translation));
action->setData(info.role);
const bool enable = (!info.requiresBaloo && !info.requiresIndexer) || (info.requiresBaloo) || (info.requiresIndexer && indexingEnabled);