From 8fe6335a1985a665fb5a014c83313c48f18b6bde Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 5 Sep 2017 10:31:40 +0300 Subject: [PATCH] activation of the flag for centered zoom --- src/HYDROGUI/HYDROGUI_Module.cxx | 1 + 1 file changed, 1 insertion(+) 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* ) ) ); -- 2.39.2