┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.rc
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2017-07-19 00:00:37 +0200
committerElvis Angelaccio <[email protected]>2017-07-27 16:15:03 +0200
commit4b5ea05b6760e9020ab87f1d90071e1a2a8f9e99 (patch)
treed1c87653f2ebaecdf0cb5b110b24a7242f4cc3d6 /src/dolphinpart.rc
parent82b2dbd3ec568a6e6fe01a8e75739b25cae25f15 (diff)
Port to KStandardAction::MoveToTrash
It was introduced in kconfig(widgets) 5.25. Using the standard action results in less code and no need to hardcode the Del shortcut. Test Plan: - Change shortcut in System Settings -> Shortcuts -> Standard Shortcuts - Make sure the new shortcut is used by dolphin. Differential Revision: https://phabricator.kde.org/D6778
Diffstat (limited to 'src/dolphinpart.rc')
-rw-r--r--src/dolphinpart.rc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dolphinpart.rc b/src/dolphinpart.rc
index 01bd60009..6d38cc3de 100644
--- a/src/dolphinpart.rc
+++ b/src/dolphinpart.rc
@@ -1,11 +1,11 @@
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui name="dolphinpart" version="12" translationDomain="dolphin">
+<kpartgui name="dolphinpart" version="13" translationDomain="dolphin">
<MenuBar>
<Menu name="edit"><text>&amp;Edit</text>
<Action name="new_menu"/>
<Separator/>
<Action name="rename"/>
- <Action name="move_to_trash" />
+ <Action name="movetotrash" />
<Action name="deletefile"/>
<Action name="editMimeType"/>
<Action name="properties"/>
@@ -52,14 +52,14 @@
</ToolBar>
<State name="has_selection" >
<enable>
- <Action name="move_to_trash" />
+ <Action name="movetotrash" />
<Action name="deletefile" />
</enable>
</State>
<State name="has_no_selection" >
<disable>
<Action name="rename" />
- <Action name="move_to_trash" />
+ <Action name="movetotrash" />
<Action name="deletefile" />
</disable>
</State>