From: isn Date: Wed, 13 Dec 2017 18:35:35 +0000 (+0300) Subject: refs #1488 X-Git-Tag: v2.1.1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6517e4df6e9d4323167e783f5ac6f85c53ef7ab;p=modules%2Fhydro.git refs #1488 --- diff --git a/src/HYDROGUI/HYDROGUI_Module.cxx b/src/HYDROGUI/HYDROGUI_Module.cxx index de6e9039..03a78832 100644 --- a/src/HYDROGUI/HYDROGUI_Module.cxx +++ b/src/HYDROGUI/HYDROGUI_Module.cxx @@ -41,7 +41,7 @@ #include "HYDROGUI_ImportGeomObjectOp.h" #include "HYDROGUI_ShowHideOp.h" #include "HYDROGUI_Overview.h" - +#include #include #include #include @@ -989,6 +989,14 @@ void HYDROGUI_Module::preferencesChanged( const QString& theSection, const QStri if (anOCCViewMgr) anOCCViewMgr->setChainedOperations( aChainedPan ); } + + QList docW = getApp()->desktop()->findChildren(); + foreach (QDockWidget* qw, docW) + { + HYDROGUI_ProfileDlg* pdlg = dynamic_cast(qw); + if (pdlg) + pdlg->viewManager()->setChainedOperations(aChainedPan); + } } else LightApp_Module::preferencesChanged( theSection, thePref ); diff --git a/src/HYDROGUI/HYDROGUI_ViewerDlg.cxx b/src/HYDROGUI/HYDROGUI_ViewerDlg.cxx index 29c307f4..ac035936 100644 --- a/src/HYDROGUI/HYDROGUI_ViewerDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ViewerDlg.cxx @@ -53,6 +53,8 @@ HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QStrin SUIT_Study* aStudy = 0; #endif myViewManager = new OCCViewer_ViewManager( aStudy, 0 ); + bool IsChainedPan = aResMgr->booleanValue( "HYDRO", "chained_panning" ); + myViewManager->setChainedOperations(IsChainedPan); OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( dispTrihedron ); aViewer->setBackground( OCCViewer_ViewFrame::TOP_LEFT,