22 #include "qgis_core.h"
90 CanProvideAvailableValues = 1
92 Q_DECLARE_FLAGS( Flags, Flag )
100 virtual QString
id() const = 0;
109 virtual QString representValue(
QgsVectorLayer *layer,
int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
118 virtual QVariant sortValue(
QgsVectorLayer *layer,
int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
126 virtual Qt::AlignmentFlag alignmentFlag(
QgsVectorLayer *layer,
int fieldIndex, const QVariantMap &config ) const;
141 virtual QVariant createCache(
QgsVectorLayer *layer,
int fieldIndex, const QVariantMap &config ) const;
163 virtual QVariantList availableValues( const QVariantMap &config,
int countLimit, const
QgsFieldFormatterContext &context ) const;
170 Flags flags()
const {
return mFlags; }
177 void setFlags(
const Flags &flags );
A context for field formatter containing information like the project.
void setProject(QgsProject *project)
Sets the project used in field formatter.
QgsProject * project() const
Returns the project used in field formatter.
QgsFieldFormatterContext()=default
Constructor.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Represents a vector layer which manages a vector based data sets.