From: asl Date: Tue, 5 Sep 2017 07:31:40 +0000 (+0300) Subject: activation of the flag for centered zoom X-Git-Tag: v2.1~66^2~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8fe6335a1985a665fb5a014c83313c48f18b6bde;p=modules%2Fhydro.git activation of the flag for centered zoom --- diff --git a/src/HYDROGUI/HYDROGUI_Module.cxx b/src/HYDROGUI/HYDROGUI_Module.cxx index 38090fe5..4f8eeafd 100644 --- a/src/HYDROGUI/HYDROGUI_Module.cxx +++ b/src/HYDROGUI/HYDROGUI_Module.cxx @@ -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* ) ) );