mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Fix for both QT4 and QT5
This commit is contained in:
parent
825b2aa7c3
commit
bc5c03f27f
1 changed files with 4 additions and 0 deletions
|
@ -700,7 +700,11 @@ void Plot::wheelEvent(QWheelEvent *event) {
|
||||||
Zoom(1.0-(float)event->delta()/(120/zoom_offset), x);
|
Zoom(1.0-(float)event->delta()/(120/zoom_offset), x);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
#if QT_VERSION >= 0x050000
|
||||||
|
Move(PageWidth*(-(float)event->angleDelta().y()/(120/move_offset)));
|
||||||
|
#else
|
||||||
Move(PageWidth*(-(float)event->delta()/(120/move_offset)));
|
Move(PageWidth*(-(float)event->delta()/(120/move_offset)));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
this->update();
|
this->update();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue