38 Q_UNUSED( fieldIndex )
49 QVariant::Type fldType = layer->
fields().
at( fieldIndex ).
type();
50 bool alignRight = ( fldType == QVariant::Int || fldType == QVariant::Double || fldType == QVariant::LongLong
51 || fldType == QVariant::DateTime || fldType == QVariant::Date || fldType == QVariant::Time );
54 return Qt::AlignRight;
62 Q_UNUSED( fieldIndex )
QString displayString(const QVariant &v) const
Formats string for display.
Field comes from the underlying data provider of the vector layer (originIndex = index in provider's ...
QgsField at(int i) const
Gets field at particular index (must be in range 0..N-1)
QgsFields fields() const FINAL
Returns the list of fields of this layer.
int fieldOriginIndex(int fieldIdx) const
Gets field's origin index (its meaning is specific to each type of origin)
FieldOrigin fieldOrigin(int fieldIdx) const
Gets field's origin (value from an enumeration)
QgsVectorDataProvider * dataProvider() FINAL
Returns the layer's data provider.
virtual QString defaultValueClause(int fieldIndex) const
Returns any default value clauses which are present at the provider for a specified field index...
Represents a vector layer which manages a vector based data sets.