{
// IMN 05/03/2015: we copied myActionMap for reset/unset actions accelerator keys
// after activate/deactivate modules
- for ( QMap<QPair<int, QAction*>, QKeySequence>::Iterator it = myActionShortcutMap.begin(); it != myActionShortcutMap.end(); ++it )
+ for ( QMap<QAction*, QKeySequence>::Iterator it = myActionShortcutMap.begin(); it != myActionShortcutMap.end(); ++it )
{
- myActionMap.insert( it.key().first, it.key().second );
// Reset actions accelerator keys
- it.key().second->setShortcut( it.value() );
+ it.key()->setShortcut( it.value() );
}
myActionShortcutMap.clear();
return true;
myActionShortcutMap.clear();
for ( QMap<int, QAction*>::Iterator it = myActionMap.begin(); it != myActionMap.end(); ++it )
{
- myActionShortcutMap.insert( qMakePair( it.key(), it.value() ), it.value()->shortcut() );
+ myActionShortcutMap.insert( it.value(), it.value()->shortcut() );
+ it.value()->setShortcut( QKeySequence() );
}
- myActionMap.clear();
return true;
}
bool unregisterAction( QAction* );
// IMN 05/03/2015: we copied myActionMap for reset/unset actions accelerator keys
// after activate/deactivate modules
- QMap<QPair<int, QAction*>, QKeySequence> myActionShortcutMap; //!< copy actions shortcut map
+ QMap<QAction*, QKeySequence> myActionShortcutMap; //!< copy actions shortcut map
virtual bool abortAllOperations();