mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
Fix deprecated QWheelEvent.x()
This commit is contained in:
parent
3ffd7384ae
commit
8bbda87956
1 changed files with 1 additions and 1 deletions
|
@ -686,7 +686,7 @@ void Plot::wheelEvent(QWheelEvent *event) {
|
||||||
// 120+shift => zoom out 10%
|
// 120+shift => zoom out 10%
|
||||||
const float zoom_offset = 0.1;
|
const float zoom_offset = 0.1;
|
||||||
if (event->modifiers() & Qt::ShiftModifier) {
|
if (event->modifiers() & Qt::ShiftModifier) {
|
||||||
int x = event->x();
|
int x = event->position().x();
|
||||||
x -= WIDTH_AXES;
|
x -= WIDTH_AXES;
|
||||||
x = (int)(x / GraphPixelsPerPoint);
|
x = (int)(x / GraphPixelsPerPoint);
|
||||||
x += GraphStart;
|
x += GraphStart;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue