From 7044f1bd20ad2646ee6d6cceb1911f58930f65d4 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 15 Oct 2014 20:21:46 +0400 Subject: [PATCH] 0022712: [CEA 1300] LightApp_PreferencesDlg - invalid layout / resize policy --- src/PVGUI/PVGUI_Module.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PVGUI/PVGUI_Module.cxx b/src/PVGUI/PVGUI_Module.cxx index 2f055f11..ce1390e5 100644 --- a/src/PVGUI/PVGUI_Module.cxx +++ b/src/PVGUI/PVGUI_Module.cxx @@ -348,7 +348,7 @@ void PVGUI_Module::initialize( CAM_Application* app ) // Initialize ParaView client and associated behaviors // and connect to externally launched pvserver - PVViewer_ViewManager::ParaviewInitApp(aDesktop); + PVViewer_ViewManager::ParaviewInitApp(aDesktop, 0); // VSR: temporary, to make PARAVIS compilable myGuiElements = PVViewer_GUIElements::GetInstance(aDesktop); // Remember current state of desktop toolbars @@ -528,7 +528,7 @@ void PVGUI_Module::showView( bool toShow ) PVViewer_ViewManager* viewMgr = dynamic_cast( anApp->getViewManager( PVViewer_Viewer::Type(), false ) ); if ( !viewMgr ) { - viewMgr = new PVViewer_ViewManager( anApp->activeStudy(), anApp->desktop() ); + viewMgr = new PVViewer_ViewManager( anApp->activeStudy(), anApp->desktop(), 0 ); // VSR: temporary, to make PARAVIS compilable anApp->addViewManager( viewMgr ); connect( viewMgr, SIGNAL( lastViewClosed( SUIT_ViewManager* ) ), anApp, SLOT( onCloseView( SUIT_ViewManager* ) ) ); @@ -971,6 +971,7 @@ void PVGUI_Module::createPreferences() { // Paraview settings tab int aParaViewSettingsTab = addPreference( tr( "TIT_PVIEWSETTINGS" ) ); + setPreferenceProperty(aParaViewSettingsTab, "stretch", false ); int aPanel = addPreference(QString(), aParaViewSettingsTab, LightApp_Preferences::UserDefined, "PARAVIS", ""); setPreferenceProperty(aPanel, "content", (qint64)(new PVGUI_ParaViewSettingsPane())); -- 2.39.2