From f7505ecef0e91f6e3e777839f87291f1d5630e41 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 30 Nov 2017 15:39:23 +0300 Subject: [PATCH] refs #1452: zoom via mouse wheel --- src/GraphicsView/GraphicsView_Viewer.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/GraphicsView/GraphicsView_Viewer.h b/src/GraphicsView/GraphicsView_Viewer.h index 5423eb5e4..eeb7cd854 100644 --- a/src/GraphicsView/GraphicsView_Viewer.h +++ b/src/GraphicsView/GraphicsView_Viewer.h @@ -112,13 +112,13 @@ protected slots: void onTestCropOperatorPerform( QPainterPath thePath ); */ -private: - void handleKeyPress( QKeyEvent* ); - void handleKeyRelease( QKeyEvent* ); - void handleMouseMove( QGraphicsSceneMouseEvent* ); - void handleMousePress( QGraphicsSceneMouseEvent* ); - void handleMouseRelease( QGraphicsSceneMouseEvent* ); - void handleWheel( QGraphicsSceneWheelEvent* ); +protected: + virtual void handleKeyPress( QKeyEvent* ); + virtual void handleKeyRelease( QKeyEvent* ); + virtual void handleMouseMove( QGraphicsSceneMouseEvent* ); + virtual void handleMousePress( QGraphicsSceneMouseEvent* ); + virtual void handleMouseRelease( QGraphicsSceneMouseEvent* ); + virtual void handleWheel( QGraphicsSceneWheelEvent* ); // testing ImageViewer enum QueueOperation { BringToFront, SendToBack, BringForward, SendBackward }; -- 2.39.2