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