Commit db0eec70 authored by Boudewijn Rempt's avatar Boudewijn Rempt

warnings--

parent 30c66a5d
......@@ -308,23 +308,23 @@ bool KisActionRegistry::propertizeAction(const QString &name, QAction * a)
// TODO: check for colliding shortcuts, either here, or in loading code
//
// QMap<QKeySequence, QAction*> existingShortcuts;
// Q_FOREACH (QAction* action, actionCollection->actions()) {
// if(action->shortcut() == QKeySequence(0)) {
// continue;
// }
// if (existingShortcuts.contains(action->shortcut())) {
// dbgAction << QString("Actions %1 and %2 have the same shortcut: %3") \
// .arg(action->text()) \
// .arg(existingShortcuts[action->shortcut()]->text()) \
// .arg(action->shortcut());
// }
// else {
// existingShortcuts[action->shortcut()] = action;
// }
// }
#if 0
QMap<QKeySequence, QAction*> existingShortcuts;
Q_FOREACH (QAction* action, actionCollection->actions()) {
if(action->shortcut() == QKeySequence(0)) {
continue;
}
if (existingShortcuts.contains(action->shortcut())) {
dbgAction << QString("Actions %1 and %2 have the same shortcut: %3") \
.arg(action->text()) \
.arg(existingShortcuts[action->shortcut()]->text()) \
.arg(action->shortcut());
}
else {
existingShortcuts[action->shortcut()] = action;
}
}
#endif
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment