diff options
| author | Jin Liu <[email protected]> | 2024-04-03 12:34:50 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2024-04-03 12:34:50 +0000 |
| commit | 7d49cb567b595570f59156965332428c9490a04d (patch) | |
| tree | f2a9bf6334aa299cc50f30b2f1fc96811f7ceb1a /src/dolphinmainwindow.h | |
| parent | e75bfea1cb9f6b4cab4334e29bb9d29bb09711ba (diff) | |
DolphinMainWindow: show a banner when the user presses the shortcut of a disabled action
Currently, there's no feedback when the user presses a shortcut of a disabled
action, e.g. cut / paste in a read-only directory. This patch shows a banner
in that case.
It's implemented by enabling a QShortcut for each disabled action. the
QShortcut is deleted when the action is enabled again.
The following actions are included:
cut
paste
rename
moveToTrash
deleteWithTrashShortcut
deleted
createDir
copyToOtherView
moveToOtherView
Diffstat (limited to 'src/dolphinmainwindow.h')
| -rw-r--r-- | src/dolphinmainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 62f8ceb6e..9a1582c1f 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -10,6 +10,7 @@ #define DOLPHIN_MAINWINDOW_H #include "config-dolphin.h" +#include "disabledactionnotifier.h" #include "dolphintabwidget.h" #include "selectionmode/bottombar.h" #include <KActionMenu> @@ -727,6 +728,7 @@ private: QPointer<DolphinSettingsDialog> m_settingsDialog; DolphinBookmarkHandler *m_bookmarkHandler; SelectionMode::ActionTextHelper *m_actionTextHelper; + DisabledActionNotifier *m_disabledActionNotifier; KIO::OpenUrlJob *m_lastHandleUrlOpenJob; |
