File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1030,7 +1030,7 @@ void RemoteViewWidget::mousePressEvent(QMouseEvent *event)
10301030 m_currentMousePosition = mapToSource (QPointF (event->pos ()));
10311031
10321032 // Initiate the middle mouse button panning that works regarless of the interaction mode
1033- if (event->button () == Qt::MiddleButton) {
1033+ if (event->button () == Qt::MiddleButton) {
10341034 m_mouseDownPosition = event->pos () - QPoint (m_x, m_y);
10351035 m_cursorBeforeMmbPan = cursor ();
10361036 setCursor (Qt::ClosedHandCursor);
@@ -1088,8 +1088,8 @@ void RemoteViewWidget::mouseReleaseEvent(QMouseEvent *event)
10881088 // In view interaction, set the open hand cursor if the user hasn't
10891089 // initiated LMB panning in the meantime. Otherwise, bring back the
10901090 // original cursor.
1091- if (m_interactionMode == ViewInteraction) {
1092- if (!(event->buttons () & Qt::LeftButton)) {
1091+ if (m_interactionMode == ViewInteraction) {
1092+ if (!(event->buttons () & Qt::LeftButton)) {
10931093 setCursor (Qt::OpenHandCursor);
10941094 }
10951095 } else {
You can’t perform that action at this time.
0 commit comments