Skip to content

Commit

Permalink
vfodisplay WheelEvent pos
Browse files Browse the repository at this point in the history
QT version check for compatibility pos or position
  • Loading branch information
PianetaRadio authored Apr 12, 2022
1 parent 9486e3d commit 0f0c461
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vfodisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ void vfoDisplay::wheelEvent(QWheelEvent *event)
{
event->accept();

#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
QPointF pointerPos = event->position();
#else
QPointF pointerPos = event->pos();
#endif

for (int i = 1; i < 10; i ++)
{
Expand Down

0 comments on commit 0f0c461

Please sign in to comment.