16 #ifndef QGSEDITORWIDGETWRAPPER_H 17 #define QGSEDITORWIDGETWRAPPER_H 50 Q_PROPERTY(
bool constraintResultVisible READ constraintResultVisible WRITE setConstraintResultVisible NOTIFY constraintResultVisibleChanged )
51 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 );
185 bool isValidConstraint()
const;
193 bool isBlockingCommit()
const;
201 QString constraintFailureReason()
const;
208 virtual void setHint(
const QString &hintText );
226 bool constraintResultVisible()
const;
237 void setConstraintResultVisible(
bool constraintResultVisible );
247 Q_DECL_DEPRECATED
void valueChanged(
const QVariant &value );
257 void valuesChanged(
const QVariant &value,
const QVariantList &additionalFieldValues = QVariantList() );
272 void constraintResultVisibleChanged(
bool visible );
301 void setValues(
const QVariant &value,
const QVariantList &additionalValues );
306 void emitValueChanged();
322 virtual void updateConstraintWidgetStatus();
347 bool setFormFeatureAttribute(
const QString &attributeName,
const QVariant &attributeValue );
361 virtual void updateValues(
const QVariant &value,
const QVariantList &additionalValues = QVariantList() );
364 bool isRunningDeprecatedSetValue =
false;
371 QList<int> mAdditionalFieldIndexes;
381 bool mValidConstraint;
384 bool mIsBlockingCommit;
387 QString mConstraintFailureReason;
393 bool mConstraintResultVisible =
false;
395 mutable QVariant mDefaultValue;
402 #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(QgsMeshTimeSettings)
Encapsulate a field in an attribute table or data source.
Represents a vector layer which manages a vector based data sets.