From 4f219342a722528277a82f7c3801e20eed8f6549 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 18 Oct 2020 16:17:48 +0200 Subject: [PATCH] Qt5: fix build failure with Qt 5.15 --- src/Gui/Quarter/Mouse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/Quarter/Mouse.cpp b/src/Gui/Quarter/Mouse.cpp index ce4a1e8ea1..bb7c8e5d27 100644 --- a/src/Gui/Quarter/Mouse.cpp +++ b/src/Gui/Quarter/Mouse.cpp @@ -169,8 +169,8 @@ MouseP::mouseWheelEvent(QWheelEvent * event) { PUBLIC(this)->setModifiers(this->wheel, event); #if QT_VERSION >= QT_VERSION_CHECK(5,15,0) - QPoint pos = event->position().toPoint(); - SbVec2s pos(pos.x(), PUBLIC(this)->windowsize[1] - pos.y() - 1); + QPoint pnt = event->position().toPoint(); + SbVec2s pos(pnt.x(), PUBLIC(this)->windowsize[1] - pnt.y() - 1); #else SbVec2s pos(event->pos().x(), PUBLIC(this)->windowsize[1] - event->pos().y() - 1); #endif