Skip to content

Commit 1adc8b2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 94ff1ad commit 1adc8b2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ui/remoteviewwidget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)