@@ -69,13 +69,13 @@ void QgsConfigureShortcutsDialog::populateActions()
69
69
{
70
70
actionText = action->text ();
71
71
actionText.remove ( ' &' ); // remove the accelerator
72
- sequence = action->shortcut ().toString ();
72
+ sequence = action->shortcut ().toString ( QKeySequence::NativeText );
73
73
icon = action->icon ();
74
74
}
75
75
else if ( QShortcut *shortcut = qobject_cast< QShortcut * >( obj ) )
76
76
{
77
77
actionText = shortcut->whatsThis ();
78
- sequence = shortcut->key ().toString ();
78
+ sequence = shortcut->key ().toString ( QKeySequence::NativeText );
79
79
icon = shortcut->property ( " Icon" ).value <QIcon>();
80
80
}
81
81
else
@@ -391,7 +391,7 @@ void QgsConfigureShortcutsDialog::updateShortcutText()
391
391
{
392
392
// update text of the button so that user can see what has typed already
393
393
QKeySequence s ( mModifiers + mKey );
394
- btnChangeShortcut->setText ( tr ( " Input: " ) + s.toString () );
394
+ btnChangeShortcut->setText ( tr ( " Input: " ) + s.toString ( QKeySequence::NativeText ) );
395
395
}
396
396
397
397
void QgsConfigureShortcutsDialog::setGettingShortcut ( bool getting )
@@ -449,10 +449,10 @@ void QgsConfigureShortcutsDialog::setCurrentActionShortcut( const QKeySequence &
449
449
}
450
450
451
451
// update manager
452
- mManager ->setObjectKeySequence ( object, s.toString () );
452
+ mManager ->setObjectKeySequence ( object, s.toString ( QKeySequence::NativeText ) );
453
453
454
454
// update gui
455
- treeActions->currentItem ()->setText ( 1 , s.toString () );
455
+ treeActions->currentItem ()->setText ( 1 , s.toString ( QKeySequence::NativeText ) );
456
456
457
457
actionChanged ( treeActions->currentItem (), nullptr );
458
458
}
0 commit comments