Skip to content

Commit

Permalink
display correctly keyboard shortcut in toolbar tooltip under macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Feb 13, 2018
1 parent 231dae3 commit 856dd08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/qgsshortcutsmanager.cpp
Expand Up @@ -38,7 +38,7 @@ void QgsShortcutsManager::registerAllChildActions( QObject *object, bool recursi
QList< QAction * > actions = object->findChildren< QAction * >();
Q_FOREACH ( QAction *a, actions )
{
registerAction( a, a->shortcut().toString() );
registerAction( a, a->shortcut().toString( QKeySequence::NativeText ) );
}
}
else
Expand All @@ -47,7 +47,7 @@ void QgsShortcutsManager::registerAllChildActions( QObject *object, bool recursi
{
if ( QAction *a = qobject_cast<QAction *>( child ) )
{
registerAction( a, a->shortcut().toString() );
registerAction( a, a->shortcut().toString( QKeySequence::NativeText ) );
}
}
}
Expand All @@ -60,7 +60,7 @@ void QgsShortcutsManager::registerAllChildShortcuts( QObject *object, bool recur
QList< QShortcut * > shortcuts = object->findChildren< QShortcut * >();
Q_FOREACH ( QShortcut *s, shortcuts )
{
registerShortcut( s, s->key().toString() );
registerShortcut( s, s->key().toString( QKeySequence::NativeText ) );
}
}
else
Expand All @@ -69,7 +69,7 @@ void QgsShortcutsManager::registerAllChildShortcuts( QObject *object, bool recur
{
if ( QShortcut *s = qobject_cast<QShortcut *>( child ) )
{
registerShortcut( s, s->key().toString() );
registerShortcut( s, s->key().toString( QKeySequence::NativeText ) );
}
}
}
Expand Down

0 comments on commit 856dd08

Please sign in to comment.