From: mkr Date: Tue, 2 Sep 2008 07:16:41 +0000 (+0000) Subject: Refix of IPAL19631: Qt4 porting. There are nonsignificant zeros in many fields of... X-Git-Tag: TG_TRIPOLI_qt4_porting~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8577998c85dc54574646366d4394c7320884a031;p=modules%2Fgui.git Refix of IPAL19631: Qt4 porting. There are nonsignificant zeros in many fields of dialog boxes. Regression occured after fix of IPAL20206. --- 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 ); }