Skip to content
Permalink
Browse files

Replace use of deprecated QShortcut string operator

  • Loading branch information
nyalldawson committed Sep 5, 2017
1 parent 77c4edf commit b196d37c1e07156a917164e9dceef72c2abd772d
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/gui/qgsshortcutsmanager.cpp
@@ -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() );
registerAction( a, a->shortcut().toString() );
}
}
else
@@ -47,7 +47,7 @@ void QgsShortcutsManager::registerAllChildActions( QObject *object, bool recursi
{
if ( QAction *a = qobject_cast<QAction *>( child ) )
{
registerAction( a, a->shortcut() );
registerAction( a, a->shortcut().toString() );
}
}
}
@@ -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() );
registerShortcut( s, s->key().toString() );
}
}
else
@@ -69,7 +69,7 @@ void QgsShortcutsManager::registerAllChildShortcuts( QObject *object, bool recur
{
if ( QShortcut *s = qobject_cast<QShortcut *>( child ) )
{
registerShortcut( s, s->key() );
registerShortcut( s, s->key().toString() );
}
}
}

0 comments on commit b196d37

Please sign in to comment.
You can’t perform that action at this time.