SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
- myScaleSpn->setDecimals( aPrecision*(-1) );
+ myScaleSpn->setPrecision( aPrecision*(-1) );
+ myScaleSpn->setDecimals(38);
myScaleSpn->setValue(0.1);
myPreviewCheck = new QCheckBox(tr("LBL_SHOW_PREVIEW"), this);
SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
- ScalFact->setDecimals( aPrecision*(-1) );
+ ScalFact->setPrecision( aPrecision*(-1) );
+ ScalFact->setDecimals( 32 );
ScalFact->setValue(0.1);
TopGroupLayout->addWidget(ScalFact, 0, 1);
SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
- ScalFact->setDecimals( aPrecision ); // ScalFact->setDecimals(38);
- // ScalFact->setFormat ( false ); // generic format
+ ScalFact->setPrecision( aPrecision*(-1) );
+ ScalFact->setDecimals(38);
ScalFact->setValue(0.1);
TopGroupLayout->addWidget(ScalFact, 0, 1);
myPrsCopy = VISU::TSameAsFactory<VISU::TDEFORMEDSHAPE>().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish);
VisuGUI_ScalarBarBaseDlg::initFromPrsObject(myPrsCopy, theInit);
-
setFactor(myPrsCopy->GetScale());
UseMagn->setChecked(myPrsCopy->IsColored());
SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
- ScalFact->setDecimals( aPrecision*(-1) ); // ScalFact->setDecimals( 5 );
+ ScalFact->setPrecision( aPrecision*(-1) );
+ ScalFact->setDecimals( 32 );
ScalFact->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
ScalFact->setValue( 0.1 );