Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
Kig
Commits
5fc8b50e
Commit
5fc8b50e
authored
Aug 31, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port away from deprecated Qt::MidButton
parent
207440a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
kig/kig_view.cpp
kig/kig_view.cpp
+3
-3
No files found.
kig/kig_view.cpp
View file @
5fc8b50e
...
...
@@ -84,7 +84,7 @@ void KigWidget::mousePressEvent (QMouseEvent* e)
{
if
(
e
->
button
()
&
Qt
::
LeftButton
)
return
mpart
->
mode
()
->
leftClicked
(
e
,
this
);
if
(
e
->
button
()
&
Qt
::
MidButton
)
if
(
e
->
button
()
&
Qt
::
Mid
dle
Button
)
return
mpart
->
mode
()
->
midClicked
(
e
,
this
);
if
(
e
->
button
()
&
Qt
::
RightButton
)
return
mpart
->
mode
()
->
rightClicked
(
e
,
this
);
...
...
@@ -94,7 +94,7 @@ void KigWidget::mouseMoveEvent (QMouseEvent* e)
{
if
(
(
e
->
buttons
()
&
Qt
::
LeftButton
)
==
Qt
::
LeftButton
)
return
mpart
->
mode
()
->
leftMouseMoved
(
e
,
this
);
if
(
(
e
->
buttons
()
&
Qt
::
MidButton
)
==
Qt
::
MidButton
)
if
(
(
e
->
buttons
()
&
Qt
::
Mid
dle
Button
)
==
Qt
::
MidButton
)
return
mpart
->
mode
()
->
midMouseMoved
(
e
,
this
);
if
(
(
e
->
buttons
()
&
Qt
::
RightButton
)
==
Qt
::
RightButton
)
return
mpart
->
mode
()
->
rightMouseMoved
(
e
,
this
);
...
...
@@ -105,7 +105,7 @@ void KigWidget::mouseReleaseEvent (QMouseEvent* e)
{
if
(
e
->
button
()
&
Qt
::
LeftButton
)
return
mpart
->
mode
()
->
leftReleased
(
e
,
this
);
if
(
e
->
button
()
&
Qt
::
MidButton
)
if
(
e
->
button
()
&
Qt
::
Mid
dle
Button
)
return
mpart
->
mode
()
->
midReleased
(
e
,
this
);
if
(
e
->
button
()
&
Qt
::
RightButton
)
return
mpart
->
mode
()
->
rightReleased
(
e
,
this
);
...
...
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