16 #ifndef QGSEDITORWIDGETWRAPPER_H 17 #define QGSEDITORWIDGETWRAPPER_H 46 Q_PROPERTY(
bool constraintResultVisible READ constraintResultVisible WRITE setConstraintResultVisible NOTIFY constraintResultVisibleChanged )
47 Q_PROPERTY(
ConstraintResult constraintResult READ constraintResult NOTIFY constraintStatusChanged )
57 ConstraintResultPass = 0,
81 virtual QVariant value()
const = 0;
108 QVariant defaultValue()
const;
122 static bool isInTable(
const QWidget *parent );
167 bool isValidConstraint()
const;
175 bool isBlockingCommit()
const;
183 QString constraintFailureReason()
const;
190 virtual void setHint(
const QString &hintText );
208 bool constraintResultVisible()
const;
219 void setConstraintResultVisible(
bool constraintResultVisible );
228 void valueChanged(
const QVariant &value );
243 void constraintResultVisibleChanged(
bool visible );
262 virtual void setValue(
const QVariant &value ) = 0;
267 void emitValueChanged();
283 virtual void updateConstraintWidgetStatus();
308 bool setFormFeatureAttribute(
const QString &attributeName,
const QVariant &attributeValue );
326 bool mValidConstraint;
329 bool mIsBlockingCommit;
332 QString mConstraintFailureReason;
338 bool mConstraintResultVisible =
false;
340 mutable QVariant mDefaultValue;
347 #endif // QGSEDITORWIDGETWRAPPER_H
ConstraintOrigin
Origin of constraints.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Q_DECLARE_METATYPE(QModelIndex)
Encapsulate a field in an attribute table or data source.
Represents a vector layer which manages a vector based data sets.