if ( ok ) {
int aPrecision = index.data( Qt::UserRole + 1 ).toInt( &ok );
if ( !ok )
- aPrecision = 0;
+ aPrecision = 0;
SalomeApp_DoubleSpinBox* dblSpin = new SalomeApp_DoubleSpinBox( -1.e20, 1.e20, 1, aPrecision, 20, parent, false, true );
dblSpin->setFrame( false );
if( data.type() == QVariant::Double ) {
double valueDouble = data.toDouble( &bOk );
if( bOk )
- dblSpin->setValue( valueDouble );
+ dblSpin->setValue( valueDouble );
}
}
if ( !bOk ) QItemDelegate::setEditorData( editor, index );