diff options
| author | George Florea Bănuș <[email protected]> | 2024-05-08 08:11:56 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2024-05-08 08:11:56 +0000 |
| commit | 65d7ef184acf97e7881050df88ddace97bde4b93 (patch) | |
| tree | 867a15204eca1e88420e7e707389936ac0bed3c7 /src/dolphinmainwindow.h | |
| parent | d42fec2315f4b32f7dbc74a00155f7e6abff7738 (diff) | |
view: Add setting to trigger user set action with double click
Default action is select-all.
Diffstat (limited to 'src/dolphinmainwindow.h')
| -rw-r--r-- | src/dolphinmainwindow.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 9a1582c1f..5f96ca3b6 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -47,9 +47,13 @@ class QToolButton; class PlacesPanel; class TerminalPanel; +/** Used to identify that a custom command should be triggered on a view background double-click.*/ +constexpr QLatin1String customCommand{"CUSTOM_COMMAND"}; + namespace KIO { class OpenUrlJob; +class CommandLauncherJob; } namespace SelectionMode { @@ -131,6 +135,11 @@ public: bool isInformationPanelEnabled() const; bool isSplitViewEnabledInCurrentTab() const; + /** + * Activates a user set action when double clicking the view's background. + */ + void slotDoubleClickViewBackground(Qt::MouseButton button); + public Q_SLOTS: /** * Opens each directory in \p dirs in a separate tab. If \a splitView is set, @@ -748,6 +757,8 @@ private: QFutureWatcher<void> *m_sessionSaveWatcher; bool m_sessionSaveScheduled; + KIO::CommandLauncherJob *m_job; + friend class DolphinMainWindowTest; }; |
