16#ifndef QGSEDITORWIDGETWRAPPER_H
17#define QGSEDITORWIDGETWRAPPER_H
51 Q_PROPERTY(
bool constraintResultVisible READ constraintResultVisible WRITE setConstraintResultVisible NOTIFY constraintResultVisibleChanged )
52 Q_PROPERTY(
ConstraintResult constraintResult READ constraintResult NOTIFY constraintStatusChanged )
60 ConstraintResultPass = 0,
84 virtual QVariant
value()
const = 0;
107 int fieldIdx()
const;
125 QVariant defaultValue()
const;
139 static bool isInTable(
const QWidget *parent );
188 bool isValidConstraint()
const;
195 bool isBlockingCommit()
const;
202 QString constraintFailureReason()
const;
208 virtual void setHint(
const QString &hintText );
215 ConstraintResult constraintResult()
const;
224 bool constraintResultVisible()
const;
234 void setConstraintResultVisible(
bool constraintResultVisible );
254 void valuesChanged(
const QVariant &value,
const QVariantList &additionalFieldValues = QVariantList() );
299 void setValues(
const QVariant &value,
const QVariantList &additionalValues );
304 void emitValueChanged();
317 virtual void parentFormValueChanged(
const QString &attribute,
const QVariant &value );
331 virtual void updateConstraintWidgetStatus();
356 bool setFormFeatureAttribute(
const QString &attributeName,
const QVariant &attributeValue );
368 virtual void updateValues(
const QVariant &value,
const QVariantList &additionalValues = QVariantList() );
371 bool isRunningDeprecatedSetValue =
false;
378 QList<int> mAdditionalFieldIndexes;
388 bool mValidConstraint;
391 bool mIsBlockingCommit;
394 QString mConstraintFailureReason;
397 ConstraintResult mConstraintResult = ConstraintResultPass;
400 bool mConstraintResultVisible =
false;
402 mutable QVariant mDefaultValue;
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
ConstraintOrigin
Origin of constraints.
@ ConstraintOriginNotSet
Constraint is not set.
Encapsulate a field in an attribute table or data source.
Represents a vector layer which manages a vector based data sets.
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)