From 3fdf5a016b5cfbf0c970a557558694f3696c7b13 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 11 Mar 2009 15:14:07 +0000 Subject: [PATCH] Fix VISU preferences layouting problems --- src/VISUGUI/VisuGUI.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 4b0e54fa..e7c55605 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -3523,7 +3523,8 @@ void VisuGUI::createPreferences() setPreferenceProperty( lPrec, "max", 100 ); int frame = addPreference( "", sbarTab, LightApp_Preferences::Frame, "", "" ); - setPreferenceProperty( frame, "orientation", "horizontal" ); + //setPreferenceProperty( frame, "orientation", "vertical" ); + setPreferenceProperty( frame, "columns", "2" ); // group: "Orientation" int orientGr = addPreference( tr( "VISU_ORIENTATION" ), frame, LightApp_Preferences::GroupBox ); @@ -3545,11 +3546,12 @@ void VisuGUI::createPreferences() // group: "Origin & Size Vertical" - int psSzFrame = addPreference( "", sbarTab, LightApp_Preferences::Frame, "", "" ); - setPreferenceProperty( psSzFrame, "orientation", "horizontal" ); + //int psSzFrame = addPreference( "", sbarTab, LightApp_Preferences::Frame, "", "" ); + //setPreferenceProperty( psSzFrame, "orientation", "horizontal" ); + //setPreferenceProperty( psSzFrame, "columns", "2" ); int posVSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_VERTICAL" ), - psSzFrame, LightApp_Preferences::GroupBox ); + frame, LightApp_Preferences::GroupBox ); setPreferenceProperty( posVSizeGr, "columns", 2 ); int xv = addPreference( tr( "VISU_X" ), posVSizeGr, LightApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_x" ); @@ -3599,7 +3601,7 @@ void VisuGUI::createPreferences() // group: "Origin & Size Horizontal" int posHSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_HORIZONTAL" ), - psSzFrame, LightApp_Preferences::GroupBox ); + frame, LightApp_Preferences::GroupBox ); setPreferenceProperty( posHSizeGr, "columns", 2 ); int xh = addPreference( tr( "VISU_X" ), posHSizeGr, -- 2.39.2