46  if ( field.
type() == QMetaType::Type::Double &&
 
   47       config.contains( QStringLiteral( 
"Precision" ) ) &&
 
   51    const double val( value.toDouble( &ok ) );
 
   54      const int precision( config[ QStringLiteral( 
"Precision" ) ].toInt( &ok ) );
 
   58        result = QLocale().toString( val, 
'f', 
precision );
 
   62  else if ( ( field.
type() == QMetaType::Type::Int ) &&
 
   66    const double val( value.toInt( &ok ) );
 
   69      result =  QLocale().toString( val, 
'f', 0 );
 
   72  else if ( ( field.
type() == QMetaType::Type::LongLong ) &&
 
   76    const double val( value.toLongLong( &ok ) );
 
   79      result =  QLocale().toString( val, 
'f', 0 );
 
   84    result = value.toString();