Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
Analitza
Commits
4389c69c
Commit
4389c69c
authored
Aug 31, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port away from deprecated Qt::MidButton
parent
2645abc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
analitzawidgets/plotsview2d.cpp
analitzawidgets/plotsview2d.cpp
+2
-2
No files found.
analitzawidgets/plotsview2d.cpp
View file @
4389c69c
...
...
@@ -181,11 +181,11 @@ void PlotsView2D::wheelEvent(QWheelEvent *e)
void
PlotsView2D
::
mousePressEvent
(
QMouseEvent
*
e
)
{
if
(
!
m_readonly
&&
(
e
->
button
()
==
Qt
::
LeftButton
||
e
->
button
()
==
Qt
::
MidButton
))
{
if
(
!
m_readonly
&&
(
e
->
button
()
==
Qt
::
LeftButton
||
e
->
button
()
==
Qt
::
Mid
dle
Button
))
{
last
=
press
=
e
->
pos
();
ant
=
toViewport
(
e
->
pos
());
this
->
setCursor
(
QCursor
(
Qt
::
PointingHandCursor
));
if
(
e
->
button
()
==
Qt
::
MidButton
||
(
e
->
button
()
==
Qt
::
LeftButton
&&
e
->
modifiers
()
&
Qt
::
ControlModifier
))
if
(
e
->
button
()
==
Qt
::
Mid
dle
Button
||
(
e
->
button
()
==
Qt
::
LeftButton
&&
e
->
modifiers
()
&
Qt
::
ControlModifier
))
mode
=
Pan
;
else
if
(
e
->
button
()
==
Qt
::
LeftButton
)
mode
=
Selection
;
...
...
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