From 7d49cb567b595570f59156965332428c9490a04d Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Wed, 3 Apr 2024 12:34:50 +0000 Subject: 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 --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/CMakeLists.txt') 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 -- cgit v1.3.1