Gui: fix warnings reported by GH Actions:

* Fix trailing spaces
* Replace tabs
* Mark constructors with one argument explicit
* Fix typos
* Include FCGlobal.h to fix parsing errors
This commit is contained in:
wmayer
2022-11-11 09:56:43 +01:00
parent 5f4dbf7b4c
commit 21f47cf2ec
11 changed files with 30 additions and 29 deletions

View File

@@ -322,10 +322,10 @@ bool ShortcutManager::eventFilter(QObject *o, QEvent *ev)
if (it->key.shortcut == action->shortcut() && it->key.name == name)
break;
QKeySequence oldShortcut = it->key.shortcut;
index.replace(it, {action, name});
index.replace(it, ActionData{action, name});
actionShortcutChanged(action, oldShortcut);
} else {
index.insert({action, name});
index.insert(ActionData{action, name});
actionShortcutChanged(action, QKeySequence());
}
}