mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
display correctly keyboard shortcut in toolbar tooltip under macOS
This commit is contained in:
parent
231dae3124
commit
856dd08a10
@ -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
|
||||
@ -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 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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
|
||||
@ -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 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user