aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Graham <nate@kde.org>2019-10-06 22:15:40 -0600
committerNate Graham <nate@kde.org>2019-10-06 22:16:14 -0600
commitdb2315d79a1565c4dedf97af36c873f42a286bb2 (patch)
tree6c705f15915133190743744ecc2b11634045b3ea
parentf492398c9399a8ed97100a519a135c78dd2c5eff (diff)
downloadkconfig-db2315d79a1565c4dedf97af36c873f42a286bb2.tar.gz
kconfig-db2315d79a1565c4dedf97af36c873f42a286bb2.tar.bz2
Make preferences() a public function
-rw-r--r--src/gui/kstandardshortcut.cpp4
-rw-r--r--src/gui/kstandardshortcut.h6
2 files changed, 10 insertions, 0 deletions
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<QKeySequence> &moveToTrash()
{
return shortcut(MoveToTrash);
}
+const QList<QKeySequence> &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<QKeySequence> &renameFile();
*/
KCONFIGGUI_EXPORT const QList<QKeySequence> &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<QKeySequence> &preferences();
}
#endif // KSTANDARDSHORTCUT_H