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
Accessibility
KMag
Commits
60a7b022
Commit
60a7b022
authored
Aug 31, 2020
by
Laurent Montel
😁
Browse files
Port away from deprecated Qt::MidButton
parent
606c65c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmagzoomview.cpp
View file @
60a7b022
...
@@ -542,7 +542,7 @@ void KMagZoomView::mousePressEvent(QMouseEvent *e)
...
@@ -542,7 +542,7 @@ void KMagZoomView::mousePressEvent(QMouseEvent *e)
}
}
break
;
break
;
case
Qt
::
MidButton
:
case
Qt
::
Mid
dle
Button
:
// check if currently in move mode
// check if currently in move mode
// don't do anything if follow mouse is enabled
// don't do anything if follow mouse is enabled
if
((
m_mouseMode
!=
MoveSelection
)
&&
!
m_followMouse
)
{
if
((
m_mouseMode
!=
MoveSelection
)
&&
!
m_followMouse
)
{
...
@@ -584,7 +584,7 @@ void KMagZoomView::mouseReleaseEvent(QMouseEvent *e)
...
@@ -584,7 +584,7 @@ void KMagZoomView::mouseReleaseEvent(QMouseEvent *e)
{
{
switch
(
e
->
button
())
{
switch
(
e
->
button
())
{
case
Qt
::
LeftButton
:
case
Qt
::
LeftButton
:
case
Qt
::
MidButton
:
case
Qt
::
Mid
dle
Button
:
// check if currently in move mode
// check if currently in move mode
if
(
m_mouseMode
==
MoveSelection
)
{
if
(
m_mouseMode
==
MoveSelection
)
{
// hide the selection window
// hide the selection window
...
...
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