From: mkr Date: Wed, 30 Apr 2008 13:03:43 +0000 (+0000) Subject: Fix for bug IPAL19631: Qt4 porting. There are nonsignificant zeros in many fields... X-Git-Tag: TG_TRIPOLI_qt4_porting~73 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5e2e26d45cf3ecc0cc851dddbbc478249f94b12f;p=modules%2Fgui.git Fix for bug IPAL19631: Qt4 porting. There are nonsignificant zeros in many fields of dialog boxes. --- diff --git a/src/Qtx/QtxDoubleSpinBox.cxx b/src/Qtx/QtxDoubleSpinBox.cxx index 535fa4b96..53d7822f2 100644 --- a/src/Qtx/QtxDoubleSpinBox.cxx +++ b/src/Qtx/QtxDoubleSpinBox.cxx @@ -131,7 +131,7 @@ QString QtxDoubleSpinBox::textFromValue( double val ) const */ QString QtxDoubleSpinBox::removeTrailingZeroes( const QString& src ) const { - QString delim( "." ); + QString delim( QLocale().decimalPoint() ); int idx = src.lastIndexOf( delim ); if ( idx == -1 )