]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
refs #1452: zoom via mouse wheel
authorasl <asl@opencascade.com>
Thu, 30 Nov 2017 12:39:23 +0000 (15:39 +0300)
committerasl <asl@opencascade.com>
Thu, 30 Nov 2017 12:39:23 +0000 (15:39 +0300)
src/GraphicsView/GraphicsView_Viewer.h

index 5423eb5e43b1b263f63a5a1a4aaaf43d56ebcd68..eeb7cd854024444e1ec2d50d18972b483718405b 100644 (file)
@@ -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 };