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
KGeography
Commits
82f8eaad
Commit
82f8eaad
authored
Aug 31, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port away from deprecated Qt::MidButton
parent
5ada72de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/mapwidget.cpp
src/mapwidget.cpp
+2
-2
src/placemapwidget.cpp
src/placemapwidget.cpp
+1
-1
No files found.
src/mapwidget.cpp
View file @
82f8eaad
...
...
@@ -89,7 +89,7 @@ void mapWidget::mousePressEvent(QMouseEvent *e)
}
}
}
else
if
(
e
->
button
()
==
Qt
::
MidButton
)
else
if
(
e
->
button
()
==
Qt
::
Mid
dle
Button
)
{
p_modeBeforeMidClick
=
p_mode
;
p_mode
=
WantMove
;
...
...
@@ -143,7 +143,7 @@ void mapWidget::mouseReleaseEvent(QMouseEvent *e)
else
if
(
p_mode
==
Moving
)
{
unsetCursor
();
if
(
e
->
button
()
==
Qt
::
MidButton
)
if
(
e
->
button
()
==
Qt
::
Mid
dle
Button
)
{
p_mode
=
p_modeBeforeMidClick
;
updateActions
();
...
...
src/placemapwidget.cpp
View file @
82f8eaad
...
...
@@ -266,7 +266,7 @@ void placeMapWidget::mousePressEvent(QMouseEvent *e)
}
}
}
else
if
(
e
->
button
()
==
Qt
::
MidButton
)
else
if
(
e
->
button
()
==
Qt
::
Mid
dle
Button
)
{
p_modeBeforeMidClick
=
p_mode
;
p_mode
=
WantMove
;
...
...
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