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 );
205 bool constraintResultVisible()
const;
214 void setConstraintResultVisible(
bool constraintResultVisible );
223 void valueChanged(
const QVariant &value );
238 void constraintResultVisibleChanged(
bool visible );
257 virtual void setValue(
const QVariant &value ) = 0;
262 void emitValueChanged();
278 virtual void updateConstraintWidgetStatus();
285 bool mValidConstraint;
288 bool mIsBlockingCommit;
291 QString mConstraintFailureReason;
297 bool mConstraintResultVisible =
false;
301 mutable QVariant mDefaultValue;
308 #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.