Change range of the Width spinbox: [0,5] -> [1,5]

This commit is contained in:
rnv 2012-02-17 11:24:13 +00:00
parent 1c56b0958d
commit 58a5f9cfd1

View File

@ -105,7 +105,7 @@ SMESHGUI_Preferences_ColorDlg::SMESHGUI_Preferences_ColorDlg( SMESHGUI* theModul
QLabel* TextLabel_Width = new QLabel( tr( "Width" ), ButtonGroup1 ); QLabel* TextLabel_Width = new QLabel( tr( "Width" ), ButtonGroup1 );
SpinBox_Width = new SalomeApp_IntSpinBox( ButtonGroup1 ); SpinBox_Width = new SalomeApp_IntSpinBox( ButtonGroup1 );
SpinBox_Width->setAcceptNames( false ); // No Notebook variables allowed SpinBox_Width->setAcceptNames( false ); // No Notebook variables allowed
SpinBox_Width->setRange( 0, 5 ); SpinBox_Width->setRange( 1, 5 );
SpinBox_Width->setSingleStep( 1 ); SpinBox_Width->setSingleStep( 1 );
SpinBox_Width->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); SpinBox_Width->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
SpinBox_Width->setButtonSymbols( QSpinBox::PlusMinus ); SpinBox_Width->setButtonSymbols( QSpinBox::PlusMinus );