From: asl Date: Thu, 30 Nov 2017 12:39:23 +0000 (+0300) Subject: refs #1452: zoom via mouse wheel X-Git-Tag: V8_5_0b1^2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7505ecef0e91f6e3e777839f87291f1d5630e41;p=modules%2Fgui.git refs #1452: zoom via mouse wheel --- 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 };