aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/qsui
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Ui/qsui')
-rw-r--r--src/plugins/Ui/qsui/actionmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/Ui/qsui/actionmanager.cpp b/src/plugins/Ui/qsui/actionmanager.cpp
index 5e7eb8977..51399d1ca 100644
--- a/src/plugins/Ui/qsui/actionmanager.cpp
+++ b/src/plugins/Ui/qsui/actionmanager.cpp
@@ -147,6 +147,9 @@ ActionManager* ActionManager::instance()
QAction *ActionManager::createAction(QString name, QString confKey, QString key, QString iconName)
{
QAction *action = new QAction(name, this);
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
+ action->setShortcutVisibleInContextMenu(true);
+#endif
action->setShortcut(m_settings->value(confKey, key).toString());
action->setObjectName(confKey);
action->setProperty("defaultShortcut", key);
@@ -219,6 +222,9 @@ void ActionManager::registerAction(int id, QAction *action, QString confKey, QSt
action->setShortcut(settings.value(confKey, key).toString());
action->setProperty("defaultShortcut", key);
action->setObjectName(confKey);
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
+ action->setShortcutVisibleInContextMenu(true);
+#endif
m_actions[id] = action;
settings.endGroup();
}