┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorAlbert Mkhitaryan <[email protected]>2026-02-20 08:48:54 +0000
committerMéven Car <[email protected]>2026-02-20 08:48:54 +0000
commitdb49ac4e1916f87143574b064b36ec86f8407145 (patch)
tree9620cb68a243caf018473f93833da8e52c57973e /src/dolphinmainwindow.h
parent2438a457bf7499c91e3b035ed10ade41ac632660 (diff)
Add keyboard shortcut support for service menu actions
Introduce ServiceMenuShortcutManager, which registers all service menu actions with KActionCollection at startup allowing users to assign keyboard shortcuts in Configure Keyboard Shorcuts. Save/Load of configs happens via KXMLGUI in dolphinui.rc. Notes: - Manager initializes before setupGUI() for shortcut restoration - Execution and validation handled entirely by KFileItemAction in KIO. BUG: 260266
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index a03d566d0..cd9f238aa 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -49,6 +49,7 @@ class KToolBarPopupAction;
class QToolButton;
class PlacesPanel;
class TerminalPanel;
+class ServiceMenuShortcutManager;
/** Used to identify that a custom command should be triggered on a view background double-click.*/
constexpr QLatin1String customCommand{"CUSTOM_COMMAND"};
@@ -801,6 +802,7 @@ private:
QMenu m_searchTools;
KConfigWatcher::Ptr m_serviceMenuConfigWatcher;
KFileItemActions *m_fileItemActions = nullptr;
+ ServiceMenuShortcutManager *m_serviceMenuShortcutManager = nullptr;
QTimer *m_sessionSaveTimer;
QFutureWatcher<void> *m_sessionSaveWatcher;