Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Killbots
Commits
d98bb0f6
Commit
d98bb0f6
authored
Dec 09, 2020
by
Laurent Montel
😁
Browse files
operator+/- is disabled for QFlags in qt6
parent
4998c303
Changes
1
Hide whitespace changes
Inline
Side-by-side
mainwindow.cpp
View file @
d98bb0f6
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment