diff options
author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-24 12:13:48 -0300 |
---|---|---|
committer | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-24 16:09:14 +0100 |
commit | 127ae727775358ea6d6a1e292f9bf5714adcd046 (patch) | |
tree | e77622182ac0a094696f4f608580eaaec7782064 /src/uml/qumltimeinterval.cpp | |
parent | 1b2df2c79004e93a5bab937d9cac32f7621a6c0e (diff) |
Update UML metamodel implementation and documentation
Change-Id: I45eccac45a154f94471aa4a55a9562fbc15b2567
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumltimeinterval.cpp')
-rw-r--r-- | src/uml/qumltimeinterval.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/uml/qumltimeinterval.cpp b/src/uml/qumltimeinterval.cpp index d7932a13..d4705668 100644 --- a/src/uml/qumltimeinterval.cpp +++ b/src/uml/qumltimeinterval.cpp @@ -64,6 +64,10 @@ QT_BEGIN_NAMESPACE \brief A time interval defines the range between two time expressions. */ + +/*! + Creates a new QUmlTimeInterval. Also creates the corresponding QObject-based representation returned by asQModelingObject() if \a createQModelingObject is true. +*/ QUmlTimeInterval::QUmlTimeInterval(bool createQModelingObject) : QUmlInterval(false), _max(0), @@ -73,6 +77,9 @@ QUmlTimeInterval::QUmlTimeInterval(bool createQModelingObject) : _qModelingObject = qobject_cast<QModelingObject *>(new QUmlTimeIntervalObject(this)); } +/*! + Returns a deep-copied clone of the QUmlTimeInterval. +*/ QModelingElement *QUmlTimeInterval::clone() const { QUmlTimeInterval *c = new QUmlTimeInterval; @@ -101,6 +108,8 @@ QModelingElement *QUmlTimeInterval::clone() const /*! Refers to the TimeExpression denoting the maximum value of the range. + + \b {Redefined property(ies):} QUmlInterval::max(). */ QUmlTimeExpression *QUmlTimeInterval::max() const { @@ -109,6 +118,9 @@ QUmlTimeExpression *QUmlTimeInterval::max() const return _max; } +/*! + Adjusts max to \a max. + */ void QUmlTimeInterval::setMax(QUmlTimeExpression *max) { // This is a read-write association end @@ -125,6 +137,8 @@ void QUmlTimeInterval::setMax(QUmlTimeExpression *max) /*! Refers to the TimeExpression denoting the minimum value of the range. + + \b {Redefined property(ies):} QUmlInterval::min(). */ QUmlTimeExpression *QUmlTimeInterval::min() const { @@ -133,6 +147,9 @@ QUmlTimeExpression *QUmlTimeInterval::min() const return _min; } +/*! + Adjusts min to \a min. + */ void QUmlTimeInterval::setMin(QUmlTimeExpression *min) { // This is a read-write association end |