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/qumlvaluepin.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/qumlvaluepin.cpp')
-rw-r--r-- | src/uml/qumlvaluepin.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/uml/qumlvaluepin.cpp b/src/uml/qumlvaluepin.cpp index 0ff5c840..6b822f31 100644 --- a/src/uml/qumlvaluepin.cpp +++ b/src/uml/qumlvaluepin.cpp @@ -73,6 +73,10 @@ QT_BEGIN_NAMESPACE \brief A value pin is an input pin that provides a value by evaluating a value specification. */ + +/*! + Creates a new QUmlValuePin. Also creates the corresponding QObject-based representation returned by asQModelingObject() if \a createQModelingObject is true. +*/ QUmlValuePin::QUmlValuePin(bool createQModelingObject) : QUmlInputPin(false), _value(0) @@ -81,6 +85,9 @@ QUmlValuePin::QUmlValuePin(bool createQModelingObject) : _qModelingObject = qobject_cast<QModelingObject *>(new QUmlValuePinObject(this)); } +/*! + Returns a deep-copied clone of the QUmlValuePin. +*/ QModelingElement *QUmlValuePin::clone() const { QUmlValuePin *c = new QUmlValuePin; @@ -133,6 +140,8 @@ QModelingElement *QUmlValuePin::clone() const /*! Value that the pin will provide. + + \b {Subsetted property(ies):} QUmlElement::ownedElements(). */ QUmlValueSpecification *QUmlValuePin::value() const { @@ -141,6 +150,9 @@ QUmlValueSpecification *QUmlValuePin::value() const return _value; } +/*! + Adjusts value to \a value. + */ void QUmlValuePin::setValue(QUmlValueSpecification *value) { // This is a read-write association end |