highgui module: window_QT mouse wheel reuse variable delta instead call evnt->delta()

This commit is contained in:
Alexandr Kondratev 2016-07-05 12:02:16 +03:00
parent 4e63bd04e5
commit 179998a8a2

View File

@ -2637,7 +2637,7 @@ void DefaultViewPort::wheelEvent(QWheelEvent* evnt)
icvmouseHandler(evnt, mouse_wheel, cv_event, flags);
icvmouseProcessing(QPoingF(pt), cv_event, flags);
scaleView(evnt->delta() / 240.0, pt);
scaleView(delta / 240.0, pt);
viewport()->update();
QWidget::mouseWheel(evnt);