summaryrefslogtreecommitdiffstats
path: root/src/uml/qumltimeinterval.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-09-27 09:13:30 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-09-27 14:17:26 +0200
commit4d19c1223d4320b0db0261eb6d9904c5be480177 (patch)
tree8f31c788f492f8f38bd0cc1da09d305178463f4f /src/uml/qumltimeinterval.cpp
parent61f9748061ef752b5617ec244a8f451700dc18f4 (diff)
Add UML properties metadata
Change-Id: I7b2a4b78641c11883d3c3283a8fb53f262b891af Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumltimeinterval.cpp')
-rw-r--r--src/uml/qumltimeinterval.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/uml/qumltimeinterval.cpp b/src/uml/qumltimeinterval.cpp
index af568a61..3162118d 100644
--- a/src/uml/qumltimeinterval.cpp
+++ b/src/uml/qumltimeinterval.cpp
@@ -68,6 +68,7 @@ QUmlTimeInterval::QUmlTimeInterval(bool createQObject) :
{
if (createQObject)
_qObject = new QUmlTimeIntervalObject(this);
+ setPropertyData();
}
QUmlTimeInterval::~QUmlTimeInterval()
@@ -146,3 +147,19 @@ void QUmlTimeInterval::setMin(QUmlTimeExpression *min)
}
}
+void QUmlTimeInterval::setPropertyData()
+{
+ QModelingObject::propertyDataHash[QStringLiteral("max")][QtModeling::AggregationRole] = QStringLiteral("none"); QModelingObject::propertyDataHash[QStringLiteral("max")][QtModeling::IsDerivedUnionRole] = false;
+ QModelingObject::propertyDataHash[QStringLiteral("max")][QtModeling::DocumentationRole] = QStringLiteral("Refers to the TimeExpression denoting the maximum value of the range.");
+ QModelingObject::propertyDataHash[QStringLiteral("max")][QtModeling::RedefinedPropertiesRole] = QStringLiteral("Interval-max");
+ QModelingObject::propertyDataHash[QStringLiteral("max")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("");
+ QModelingObject::propertyDataHash[QStringLiteral("max")][QtModeling::OppositeEndRole] = QStringLiteral("");
+
+ QModelingObject::propertyDataHash[QStringLiteral("min")][QtModeling::AggregationRole] = QStringLiteral("none"); QModelingObject::propertyDataHash[QStringLiteral("min")][QtModeling::IsDerivedUnionRole] = false;
+ QModelingObject::propertyDataHash[QStringLiteral("min")][QtModeling::DocumentationRole] = QStringLiteral("Refers to the TimeExpression denoting the minimum value of the range.");
+ QModelingObject::propertyDataHash[QStringLiteral("min")][QtModeling::RedefinedPropertiesRole] = QStringLiteral("Interval-min");
+ QModelingObject::propertyDataHash[QStringLiteral("min")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("");
+ QModelingObject::propertyDataHash[QStringLiteral("min")][QtModeling::OppositeEndRole] = QStringLiteral("");
+
+}
+