┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorJin Liu <[email protected]>2024-04-03 12:34:50 +0000
committerMéven Car <[email protected]>2024-04-03 12:34:50 +0000
commit7d49cb567b595570f59156965332428c9490a04d (patch)
treef2a9bf6334aa299cc50f30b2f1fc96811f7ceb1a /src/CMakeLists.txt
parente75bfea1cb9f6b4cab4334e29bb9d29bb09711ba (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/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4c2c3cb6c..ab288a563 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -262,6 +262,7 @@ add_library(dolphinstatic STATIC)
target_sources(dolphinstatic PRIVATE
animatedheightwidget.cpp
+ disabledactionnotifier.cpp
dolphinbookmarkhandler.cpp
dolphindockwidget.cpp
dolphinmainwindow.cpp