From e1f350216e69c934ff28197b531b3f0091602e68 Mon Sep 17 00:00:00 2001 From: mzn Date: Mon, 24 Mar 2008 13:08:54 +0000 Subject: [PATCH] Fix for bug IPAL19175 ( Qt4 porting: Gauss Viewer. It is impossible modification ?Nb. in colors? and ?Nb.of labels? on the tab ?Scalar bar? of ?Gaus Points Properties? dialog box because corresponding controls are disabled ). --- src/VISUGUI/VisuGUI_GaussPointsDlg.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx b/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx index 3dc31849..e6c531db 100644 --- a/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx +++ b/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx @@ -193,19 +193,17 @@ VisuGUI_GaussScalarBarPane::VisuGUI_GaussScalarBarPane (QWidget * parent): ColorLabel = new QLabel (tr("LBL_NB_COLORS"), ColLabGroup ); ColorSpin = new QSpinBox( ColLabGroup ); - ColorSpin->setMaximum( 2 ); - ColorSpin->setMinimum( 256 ); + ColorSpin->setMinimum( 2 ); + ColorSpin->setMaximum( 256 ); ColorSpin->setSingleStep( 1 ); - - ColorSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); ColorSpin->setMinimumWidth( 70 ); ColorSpin->setValue( 64 ); LabelLabel = new QLabel (tr("LBL_NB_LABELS"), ColLabGroup); LabelSpin = new QSpinBox( ColLabGroup ); - LabelSpin->setMaximum( 2 ); - LabelSpin->setMinimum( 65 ); + LabelSpin->setMinimum( 2 ); + LabelSpin->setMaximum( 65 ); LabelSpin->setSingleStep( 1 ); LabelSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); LabelSpin->setMinimumWidth( 70 ); -- 2.39.2