mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Fixed wheel zoom with QT (ticket #733)
This commit is contained in:
@@ -2511,7 +2511,7 @@ void ViewPort::scaleView(qreal factor,QPointF center)
|
||||
|
||||
void ViewPort::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
scaleView( -event->delta() / 240.0,event->pos());
|
||||
scaleView( event->delta() / 240.0,event->pos());
|
||||
viewport()->update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user