21 #include "qgssettings.h" 
   29   return QStringLiteral( 
"Range" );
 
   47        config.contains( QStringLiteral( 
"Precision" ) ) &&
 
   51     double val( value.toDouble( &ok ) );
 
   54       int precision( config[ QStringLiteral( 
"Precision" ) ].toInt( &ok ) );
 
   58         result = QLocale().toString( val, 
'f', 
precision );
 
   62   else if ( ( 
field.
type() == QVariant::Int ) &&
 
   66     double val( value.toInt( &ok ) );
 
   69       result =  QLocale().toString( val, 
'f', 0 );
 
   72   else if ( ( 
field.
type() == QVariant::LongLong ) &&
 
   76     double val( value.toLongLong( &ok ) );
 
   79       result =  QLocale().toString( val, 
'f', 0 );
 
   84     result = value.toString();
 
static QString nullRepresentation()
This string is used to represent the value NULL throughout QGIS.
Encapsulate a field in an attribute table or data source.
QgsField at(int i) const
Returns the field at particular index (must be in range 0..N-1).
Represents a vector layer which manages a vector based data sets.
QgsFields fields() const FINAL
Returns the list of fields of this layer.