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 )
62 ConstraintResultPass = 0,
86 virtual QVariant
value()
const = 0;
109 int fieldIdx()
const;
127 QVariant defaultValue()
const;
141 static bool isInTable(
const QWidget *parent );
186 bool isValidConstraint()
const;
194 bool isBlockingCommit()
const;
202 QString constraintFailureReason()
const;
209 virtual void setHint(
const QString &hintText );
217 ConstraintResult constraintResult()
const;
227 bool constraintResultVisible()
const;
238 void setConstraintResultVisible(
bool constraintResultVisible );
258 void valuesChanged(
const QVariant &value,
const QVariantList &additionalFieldValues = QVariantList() );
303 void setValues(
const QVariant &value,
const QVariantList &additionalValues );
308 void emitValueChanged();
321 virtual void parentFormValueChanged(
const QString &attribute,
const QVariant &value );
337 virtual void updateConstraintWidgetStatus();
362 bool setFormFeatureAttribute(
const QString &attributeName,
const QVariant &attributeValue );
375 virtual void updateValues(
const QVariant &value,
const QVariantList &additionalValues = QVariantList() );
378 bool isRunningDeprecatedSetValue =
false;
385 QList<int> mAdditionalFieldIndexes;
395 bool mValidConstraint;
398 bool mIsBlockingCommit;
401 QString mConstraintFailureReason;
404 ConstraintResult mConstraintResult = ConstraintResultPass;
407 bool mConstraintResultVisible =
false;
409 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)