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
Palapeli
Commits
ddff7fae
Commit
ddff7fae
authored
Aug 31, 2020
by
Laurent Montel
😁
Browse files
Port away from deprecated Qt::MidButton
parent
9b02633e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine/trigger.cpp
View file @
ddff7fae
...
...
@@ -83,7 +83,7 @@ namespace
m_buttonStrings
[
Qt
::
NoButton
]
=
"NoButton"
;
m_buttonStrings
[
Qt
::
LeftButton
]
=
"LeftButton"
;
m_buttonStrings
[
Qt
::
RightButton
]
=
"RightButton"
;
m_buttonStrings
[
Qt
::
MidButton
]
=
"MidButton"
;
m_buttonStrings
[
Qt
::
Mid
dle
Button
]
=
"MidButton"
;
m_buttonStrings
[
Qt
::
XButton1
]
=
"XButton1"
;
m_buttonStrings
[
Qt
::
XButton2
]
=
"XButton2"
;
m_orientationStrings
[
Qt
::
Horizontal
]
=
"wheel:Horizontal"
;
...
...
@@ -106,7 +106,7 @@ namespace
m_buttonStrings
[(
Qt
::
MouseButton
)
-
1
]
=
QStringLiteral
(
"%1"
);
//allow external users to insert their custom strings into here
m_buttonStrings
[
Qt
::
LeftButton
]
=
i18nc
(
"a mouse button"
,
"Left-Button"
);
m_buttonStrings
[
Qt
::
RightButton
]
=
i18nc
(
"a mouse button"
,
"Right-Button"
);
m_buttonStrings
[
Qt
::
MidButton
]
=
i18nc
(
"a mouse button"
,
"Middle-Button"
);
m_buttonStrings
[
Qt
::
Mid
dle
Button
]
=
i18nc
(
"a mouse button"
,
"Middle-Button"
);
m_buttonStrings
[
Qt
::
XButton1
]
=
i18nc
(
"a special mouse button"
,
"XButton1"
);
m_buttonStrings
[
Qt
::
XButton2
]
=
i18nc
(
"a special mouse button"
,
"XButton2"
);
m_orientationStrings
[
Qt
::
Horizontal
]
=
i18n
(
"Horizontal-Scroll"
);
...
...
Write
Preview
Markdown
is supported
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