Skip to content
Permalink
Browse files

Use default (not system) locale

  • Loading branch information
m-kuhn committed May 3, 2018
1 parent 1b4fa88 commit b086160a711a10fd964b1363957ca498d3dfe02d
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/fieldformatter/qgsrangefieldformatter.cpp
@@ -54,7 +54,7 @@ QString QgsRangeFieldFormatter::representValue( QgsVectorLayer *layer, int field
if ( ok )
{
// TODO: make the format configurable!
result = QLocale::system().toString( val, 'f', precision );
result = QLocale().toString( val, 'f', precision );
}
}
}
@@ -65,7 +65,7 @@ QString QgsRangeFieldFormatter::representValue( QgsVectorLayer *layer, int field
double val( value.toInt( &ok ) );
if ( ok )
{
result = QLocale::system().toString( val, 'f', 0 );
result = QLocale().toString( val, 'f', 0 );
}
}
else if ( ( field.type() == QVariant::LongLong ) &&
@@ -75,7 +75,7 @@ QString QgsRangeFieldFormatter::representValue( QgsVectorLayer *layer, int field
double val( value.toLongLong( &ok ) );
if ( ok )
{
result = QLocale::system().toString( val, 'f', 0 );
result = QLocale().toString( val, 'f', 0 );
}
}
else

0 comments on commit b086160

Please sign in to comment.
You can’t perform that action at this time.