From: akl Date: Tue, 27 Jan 2009 14:03:44 +0000 (+0000) Subject: Customize decimals and precision of 'Scale factor' spinbox. X-Git-Tag: mergeto_trunk_16Feb09~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=484a6b1d7191b6a113a416eced852ca13a8b7bfd;p=modules%2Fvisu.git Customize decimals and precision of 'Scale factor' spinbox. --- diff --git a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx index a6f69386..23ac13b5 100644 --- a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx +++ b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx @@ -237,7 +237,9 @@ VisuGUI_Plot3DPane::VisuGUI_Plot3DPane (QWidget* parent) bottomLayout->setMargin(0); // scale QLabel* scaleLabel = new QLabel (tr("SCALE"), bottomFrame); - ScaleSpn = new QtxDoubleSpinBox (-1.e6, 1.e6, 0.1, bottomFrame); + SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); + int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 ); + ScaleSpn = new QtxDoubleSpinBox (-1.e38, 1.e38, 0.1, aPrecision*(-1), 38, bottomFrame); // Presentation type GBPrsType = new QButtonGroup ( bottomFrame); QGroupBox* aGB = new QGroupBox (tr("PRESENTATION_TYPE"), bottomFrame);