mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-23 07:37:23 +08:00
Fix for both QT4 and QT5
This commit is contained in:
parent
6a805eaf33
commit
825b2aa7c3
1 changed files with 4 additions and 0 deletions
|
@ -694,7 +694,11 @@ void Plot::wheelEvent(QWheelEvent *event) {
|
|||
x -= WIDTH_AXES;
|
||||
x = (int)(x / GraphPixelsPerPoint);
|
||||
x += GraphStart;
|
||||
#if QT_VERSION >= 0x050000
|
||||
Zoom(1.0-(float)event->angleDelta().y()/(120/zoom_offset), x);
|
||||
#else
|
||||
Zoom(1.0-(float)event->delta()/(120/zoom_offset), x);
|
||||
#endif
|
||||
} else {
|
||||
Move(PageWidth*(-(float)event->delta()/(120/move_offset)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue