diff --git a/ui/remoteviewwidget.cpp b/ui/remoteviewwidget.cpp index 89df6af8a0..fe2593b4fc 100644 --- a/ui/remoteviewwidget.cpp +++ b/ui/remoteviewwidget.cpp @@ -1030,7 +1030,7 @@ void RemoteViewWidget::mousePressEvent(QMouseEvent *event) m_currentMousePosition = mapToSource(QPointF(event->pos())); // Initiate the middle mouse button panning that works regarless of the interaction mode - if(event->button() == Qt::MiddleButton) { + if (event->button() == Qt::MiddleButton) { m_mouseDownPosition = event->pos() - QPoint(m_x, m_y); m_cursorBeforeMmbPan = cursor(); setCursor(Qt::ClosedHandCursor); @@ -1088,8 +1088,8 @@ void RemoteViewWidget::mouseReleaseEvent(QMouseEvent *event) // In view interaction, set the open hand cursor if the user hasn't // initiated LMB panning in the meantime. Otherwise, bring back the // original cursor. - if(m_interactionMode == ViewInteraction) { - if(!(event->buttons() & Qt::LeftButton)) { + if (m_interactionMode == ViewInteraction) { + if (!(event->buttons() & Qt::LeftButton)) { setCursor(Qt::OpenHandCursor); } } else {