+ // Obtain precision from preferences
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ const char* quantity = "parametric_precision";
+ int aPrecision = resMgr->integerValue( "Geometry", quantity, 6 );
+ SpinBox->setAcceptNames( false );
+ SpinBox->setPrecision( aPrecision );
+ SpinBox->setDecimals( aPrecision );
+ SpinBox->setRange( DEFLECTION_MIN, 1.0 );
+ SpinBox->setSingleStep( 1.0e-04 );
+ // Add a hint for the user saying how to tune precision
+ QString userPropName = QObject::tr( QString( "GEOM_PREF_%1" ).arg( quantity ).toLatin1().constData() );
+ SpinBox->setProperty( "validity_tune_hint",
+ QVariant( QObject::tr( "GEOM_PRECISION_HINT" ).arg( userPropName ) ) );
+