Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 26, 2022
1 parent 94ff1ad commit 1adc8b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/remoteviewwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1adc8b2

Please sign in to comment.