From: mzn Date: Mon, 24 Mar 2008 13:08:54 +0000 (+0000) Subject: Fix for bug IPAL19175 ( Qt4 porting: Gauss Viewer. It is impossible modification... X-Git-Tag: V5_0_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e1f350216e69c934ff28197b531b3f0091602e68;p=modules%2Fvisu.git 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 ). --- 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 );