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 )
61 ConstraintResultPass = 0,
85 virtual QVariant
value()
const = 0;
108 int fieldIdx()
const;
126 QVariant defaultValue()
const;
140 static bool isInTable(
const QWidget *parent );
189 bool isValidConstraint()
const;
196 bool isBlockingCommit()
const;
203 QString constraintFailureReason()
const;
209 virtual void setHint(
const QString &hintText );
216 ConstraintResult constraintResult()
const;
225 bool constraintResultVisible()
const;
235 void setConstraintResultVisible(
bool constraintResultVisible );
255 void valuesChanged(
const QVariant &value,
const QVariantList &additionalFieldValues = QVariantList() );
300 void setValues(
const QVariant &value,
const QVariantList &additionalValues );
305 void emitValueChanged();
318 virtual void parentFormValueChanged(
const QString &attribute,
const QVariant &value );
333 virtual void updateConstraintWidgetStatus();
358 bool setFormFeatureAttribute(
const QString &attributeName,
const QVariant &attributeValue );
371 virtual void updateValues(
const QVariant &value,
const QVariantList &additionalValues = QVariantList() );
374 bool isRunningDeprecatedSetValue =
false;
381 QList<int> mAdditionalFieldIndexes;
391 bool mValidConstraint;
394 bool mIsBlockingCommit;
397 QString mConstraintFailureReason;
400 ConstraintResult mConstraintResult = ConstraintResultPass;
403 bool mConstraintResultVisible =
false;
405 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)