Skip to content

Commit

Permalink
Qt5: fix build failure with Qt 5.15
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 18, 2020
1 parent a96f661 commit 38fcf77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gui/Quarter/Mouse.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 38fcf77

Please sign in to comment.