16 #ifndef QGSVALUERELATIONFIELDKIT_H
17 #define QGSVALUERELATIONFIELDKIT_H
19 #include "qgis_core.h"
43 ValueRelationItem(
const QVariant &key,
const QString &value,
const QString &description = QString() )
46 , description( description )
64 QString
id()
const override;
65 QString
representValue(
QgsVectorLayer *layer,
int fieldIndex,
const QVariantMap &config,
const QVariant &cache,
const QVariant &value )
const override;
67 QVariant
sortValue(
QgsVectorLayer *layer,
int fieldIndex,
const QVariantMap &config,
const QVariant &cache,
const QVariant &value )
const override;
75 static QStringList valueToStringList(
const QVariant &value );
98 static bool expressionRequiresFormScope(
const QString &expression );
107 static QSet<QString> expressionFormAttributes(
const QString &expression );
116 static QSet<QString> expressionFormVariables(
const QString &expression );
126 static bool expressionRequiresParentFormScope(
const QString &expression );
135 static QSet<QString> expressionParentFormAttributes(
const QString &expression );
144 static QSet<QString> expressionParentFormVariables(
const QString &expression );
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
A context for field formatter containing information like the project.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Represents a vector layer which manages a vector based data sets.
Q_DECLARE_METATYPE(QgsMeshTimeSettings)