Commit d98bb0f6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

operator+/- is disabled for QFlags in qt6

parent 4998c303
......@@ -222,7 +222,7 @@ QAction *Killbots::MainWindow::createMappedAction(int mapping,
{
QAction *action = new QAction(displayName, actionCollection());
action->setObjectName(internalName);
actionCollection()->setDefaultShortcuts(action, QList<QKeySequence>() << QKeySequence(translatedShortcut) << QKeySequence(alternateShortcut) << QKeySequence(alternateShortcut + Qt::KeypadModifier));
actionCollection()->setDefaultShortcuts(action, QList<QKeySequence>() << QKeySequence(translatedShortcut) << QKeySequence(alternateShortcut) << QKeySequence(alternateShortcut | Qt::KeypadModifier));
if (!helpText.isEmpty()) {
action->setWhatsThis(helpText);
action->setToolTip(helpText);
......
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