From e6517e4df6e9d4323167e783f5ac6f85c53ef7ab Mon Sep 17 00:00:00 2001 From: isn Date: Wed, 13 Dec 2017 21:35:35 +0300 Subject: [PATCH] refs #1488 --- src/HYDROGUI/HYDROGUI_Module.cxx | 10 +++++++++- src/HYDROGUI/HYDROGUI_ViewerDlg.cxx | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) 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, -- 2.39.2