+ fixes #0001380: Allow to set user-defined names for constraints

This commit is contained in:
wmayer
2014-02-10 15:36:58 +01:00
parent 9e8f124af7
commit c3384e4b5a
7 changed files with 59 additions and 8 deletions

View File

@@ -75,6 +75,18 @@ int PropertyConstraintList::getSize(void) const
return static_cast<int>(_lValueList.size());
}
void PropertyConstraintList::set1Value(const int idx, const Constraint* lValue)
{
if (lValue) {
aboutToSetValue();
Constraint* oldVal = _lValueList[idx];
Constraint* newVal = lValue->clone();
_lValueList[idx] = newVal;
delete oldVal;
hasSetValue();
}
}
void PropertyConstraintList::setValue(const Constraint* lValue)
{
if (lValue) {