From: akl Date: Tue, 27 Jan 2009 14:02:36 +0000 (+0000) Subject: Set precision with scientific format for 'Scale factor' spinbox. X-Git-Tag: V4_1_0_maintainance_20090206~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b549c6f223f5c90dbfb4067e355c2a36f31682da;p=modules%2Fvisu.git Set precision with scientific format for 'Scale factor' spinbox. --- diff --git a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx index 064226ee..1417f439 100644 --- a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx +++ b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx @@ -222,7 +222,10 @@ VisuGUI_Plot3DPane::VisuGUI_Plot3DPane (QWidget* parent) bottomLayout->setMargin(0); // scale QLabel* scaleLabel = new QLabel (tr("SCALE"), bottomFrame); - ScaleSpn = new QtxDblSpinBox (-1.e6, 1.e6, 0.1, bottomFrame); + ScaleSpn = new QtxDblSpinBox (-1.e38, 1.e38, 0.1, bottomFrame); + SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); + int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 ); + ScaleSpn->setPrecision( aPrecision*(-1) ); // Presentation type GBPrsType = new QHButtonGroup (tr("PRESENTATION_TYPE"), bottomFrame); new QRadioButton (tr("SURFACE"), GBPrsType);