+ if (theMgr->getType() == OCCViewer_Viewer::Type()) {
+ // Set the auto rotate flag in the new viewer based on the current preference
+ OCCViewer_ViewManager *aVM = (OCCViewer_ViewManager*)theMgr;
+ bool aAutoRotation = Config_PropManager::boolean("Visualization", "use_auto_rotation");
+ aVM->setAutoRotation(aAutoRotation);
+
+ connect(theMgr, SIGNAL(viewCreated(SUIT_ViewWindow*)),
+ myProxyViewer, SLOT(onViewCreated(SUIT_ViewWindow*)));
+ }