From 484a6b1d7191b6a113a416eced852ca13a8b7bfd Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 27 Jan 2009 14:03:44 +0000 Subject: [PATCH] Customize decimals and precision of 'Scale factor' spinbox. --- src/VISUGUI/VisuGUI_Plot3DDlg.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2