mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
highgui: window QT+OpenGL mouse wheel support, build fix
This commit is contained in:
parent
ecfabd7aac
commit
d394d26b46
@ -2637,9 +2637,6 @@ void DefaultViewPort::wheelEvent(QWheelEvent* evnt)
|
|||||||
icvmouseHandler((QMouseEvent*)evnt, mouse_wheel, cv_event, flags);
|
icvmouseHandler((QMouseEvent*)evnt, mouse_wheel, cv_event, flags);
|
||||||
icvmouseProcessing(QPointF(pt), cv_event, flags);
|
icvmouseProcessing(QPointF(pt), cv_event, flags);
|
||||||
|
|
||||||
scaleView(delta / 240.0, pt);
|
|
||||||
viewport()->update();
|
|
||||||
|
|
||||||
QWidget::wheelEvent(evnt);
|
QWidget::wheelEvent(evnt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user