#include <constraineddataobject.h>
Inheritance diagram for ConstrainedDataObject:


Public Member Functions | |
| virtual bool | setProperty (const QString &propName, const QVariant &qv) |
| Overrides, hides, and if it satisfies, calls the base class method too! | |
| virtual bool | setProperty (const char *propName, const QVariant &qv) |
| QString | validInputs (QString propertyName) const |
| |
Static Public Member Functions | |
| static ConstraintGroup & | ConstraintMgr () |
| |
Definition at line 21 of file constraineddataobject.h.
| ConstraintGroup & ConstrainedDataObject::ConstraintMgr | ( | ) | [static] |
This particular one is checked in every call to DataObject::setProperty()
You can add Constraint instances to this, to impose input Constraint on some DataObject-derived classes.
Definition at line 5 of file constraineddataobject.cpp.
Referenced by CanadaAddress::initConstraints(), UsAddress::initConstraints(), setProperty(), and validInputs().
| bool ConstrainedDataObject::setProperty | ( | const QString & | propName, | |
| const QVariant & | qv | |||
| ) | [virtual] |
Overrides, hides, and if it satisfies, calls the base class method too!
| propertyName | name of property to set | |
| value | value to set property |
Reimplemented from DataObject.
Definition at line 17 of file constraineddataobject.cpp.
References Constraint::accepts(), DataObject::className(), ConstraintMgr(), ConstraintGroup::getConstraint(), and DataObject::setProperty().
Referenced by setProperty().
Here is the call graph for this function:

1.5.1