From db2315d79a1565c4dedf97af36c873f42a286bb2 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Sun, 6 Oct 2019 22:15:40 -0600 Subject: Make preferences() a public function --- src/gui/kstandardshortcut.cpp | 4 ++++ src/gui/kstandardshortcut.h | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'src') diff --git a/src/gui/kstandardshortcut.cpp b/src/gui/kstandardshortcut.cpp index 1bdbd247..a8215138 100644 --- a/src/gui/kstandardshortcut.cpp +++ b/src/gui/kstandardshortcut.cpp @@ -554,5 +554,9 @@ const QList &moveToTrash() { return shortcut(MoveToTrash); } +const QList &preferences() +{ + return shortcut(Preferences); +} } diff --git a/src/gui/kstandardshortcut.h b/src/gui/kstandardshortcut.h index aabe6b3c..15cdc1b9 100644 --- a/src/gui/kstandardshortcut.h +++ b/src/gui/kstandardshortcut.h @@ -527,6 +527,12 @@ KCONFIGGUI_EXPORT const QList &renameFile(); */ KCONFIGGUI_EXPORT const QList &moveToTrash(); +/** + * Opens the app's settings window. Default: Ctrl+Shift+Comma + * @return the shortcut of the standard accelerator + * @since 5.64 + */ +KCONFIGGUI_EXPORT const QList &preferences(); } #endif // KSTANDARDSHORTCUT_H -- cgit v1.2.1