QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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;
416 #endif // QGSEDITORWIDGETWRAPPER_H
Q_DECLARE_METATYPE(QgsMeshTimeSettings)
ConstraintOrigin
Origin of constraints.
@ ConstraintOriginNotSet
Constraint is not set.
Represents a vector layer which manages a vector based data sets.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Encapsulate a field in an attribute table or data source.