From b549c6f223f5c90dbfb4067e355c2a36f31682da Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 27 Jan 2009 14:02:36 +0000 Subject: [PATCH] Set precision with scientific format for 'Scale factor' spinbox. --- src/VISUGUI/VisuGUI_Plot3DDlg.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.2