aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-26 20:28:13 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-26 20:28:13 +0000
commitaec22304b3293d7b1f9f554c74b735fc1593479f (patch)
tree000980219f9a306fe447a5e5dcc0f22d2e4679c8 /src/qmmpui
parente76365263cfea56e02e17e31f555abb918a1b177 (diff)
downloadqmmp-aec22304b3293d7b1f9f554c74b735fc1593479f.tar.gz
qmmp-aec22304b3293d7b1f9f554c74b735fc1593479f.tar.bz2
qmmp-aec22304b3293d7b1f9f554c74b735fc1593479f.zip
show shortcuts in context menus (QTBUG-69452)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8794 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui')
-rw-r--r--src/qmmpui/uihelper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmmpui/uihelper.cpp b/src/qmmpui/uihelper.cpp
index 5ae9e9184..0aadd0b24 100644
--- a/src/qmmpui/uihelper.cpp
+++ b/src/qmmpui/uihelper.cpp
@@ -71,7 +71,12 @@ void UiHelper::addAction(QAction *action, MenuType type)
connect(action, SIGNAL(destroyed (QObject *)), SLOT(removeAction(QObject*)));
if(!m_menus[type].actions.contains(action))
+ {
m_menus[type].actions.append(action);
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
+ action->setShortcutVisibleInContextMenu(true);
+#endif
+ }
if(m_menus[type].menu && !m_menus[type].menu->actions().contains(action))
{
if(m_menus[type].before)