From 8577998c85dc54574646366d4394c7320884a031 Mon Sep 17 00:00:00 2001 From: mkr Date: Tue, 2 Sep 2008 07:16:41 +0000 Subject: [PATCH] Refix of IPAL19631: Qt4 porting. There are nonsignificant zeros in many fields of dialog boxes. Regression occured after fix of IPAL20206. --- src/Qtx/QtxDoubleSpinBox.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Qtx/QtxDoubleSpinBox.cxx b/src/Qtx/QtxDoubleSpinBox.cxx index 652f1a5cc..ba8585f4a 100644 --- a/src/Qtx/QtxDoubleSpinBox.cxx +++ b/src/Qtx/QtxDoubleSpinBox.cxx @@ -199,8 +199,7 @@ double QtxDoubleSpinBox::valueFromText( const QString& text ) const */ QString QtxDoubleSpinBox::textFromValue( double val ) const { - QString s; - s.setNum( val, myPrecision >= 0 ? 'f' : 'g', myPrecision == 0 ? 6 : qAbs( myPrecision ) ); + QString s = QLocale().toString( val, myPrecision >= 0 ? 'f' : 'g', myPrecision == 0 ? 6 : qAbs( myPrecision ) ); return removeTrailingZeroes( s ); } -- 2.39.2