]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
activation of the flag for centered zoom
authorasl <asl@opencascade.com>
Tue, 5 Sep 2017 07:31:40 +0000 (10:31 +0300)
committerasl <asl@opencascade.com>
Tue, 19 Sep 2017 10:47:17 +0000 (13:47 +0300)
src/HYDROGUI/HYDROGUI_Module.cxx

index 38090fe5441884545f6a71db1a63a3e70a8c014c..4f8eeafda2d0bed2919de47c478ef355ea9609ab 100644 (file)
@@ -1541,6 +1541,7 @@ void HYDROGUI_Module::onViewCreated( SUIT_ViewWindow* theViewWindow )
       aViewFrame->installEventFilter( this );
 
       GraphicsView_ViewPort* aViewPort = aViewFrame->getViewPort();
+      aViewPort->setInteractionFlag( GraphicsView_ViewPort::GlobalWheelScaling );
 
       connect( aViewPort, SIGNAL( vpMouseEvent( QGraphicsSceneMouseEvent* ) ),
                this, SLOT( onViewPortMouseEvent( QGraphicsSceneMouseEvent* ) ) );