summaryrefslogtreecommitdiffstats
path: root/src/uml/qparameter.h
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2012-12-28 16:48:58 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2012-12-28 20:50:04 +0100
commit5ea015332a188943b393b7c8a2b0d5452529239e (patch)
tree7900983e7351e879848bfc2c9410f2a35338f1c4 /src/uml/qparameter.h
parenta0a6ad462b05c7d174c7e26a815d6f54cfab3c31 (diff)
Make use of new Qt5 properties facilities in QtUml/QtMof
Change-Id: I1510b900fd3aebd34620dba873dd63939f5b4ca6 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qparameter.h')
-rw-r--r--src/uml/qparameter.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/uml/qparameter.h b/src/uml/qparameter.h
index 35918935..fab0479c 100644
--- a/src/uml/qparameter.h
+++ b/src/uml/qparameter.h
@@ -81,7 +81,7 @@ class Q_UML_EXPORT QParameter : public QWrappedObject
Q_PROPERTY(QtUml::ParameterEffectKind effect READ effect WRITE setEffect)
Q_PROPERTY(QOperation * operation READ operation WRITE setOperation)
Q_PROPERTY(QValueSpecification * defaultValue READ defaultValue WRITE setDefaultValue)
- Q_PROPERTY(const QSet<QParameterSet *> * parameterSets READ parameterSets)
+ Q_PROPERTY(QSet<QParameterSet *> parameterSets READ parameterSets)
Q_DISABLE_COPY(QParameter)
Q_DECLARE_PRIVATE(QParameter)
@@ -91,9 +91,9 @@ public:
virtual ~QParameter();
// Association ends from aggregated QElement
- Q_INVOKABLE const QSet<QElement *> *ownedElements() const;
+ Q_INVOKABLE const QSet<QElement *> &ownedElements() const;
Q_INVOKABLE QElement *owner() const;
- Q_INVOKABLE const QSet<QComment *> *ownedComments() const;
+ Q_INVOKABLE const QSet<QComment *> &ownedComments() const;
Q_INVOKABLE void addOwnedComment(QComment *ownedComment);
Q_INVOKABLE void removeOwnedComment(QComment *ownedComment);
@@ -127,7 +127,7 @@ public:
Q_INVOKABLE QStringExpression *nameExpression() const;
Q_INVOKABLE void setNameExpression(QStringExpression *nameExpression);
Q_INVOKABLE QNamespace *namespace_() const;
- Q_INVOKABLE const QSet<QDependency *> *clientDependencies() const;
+ Q_INVOKABLE const QSet<QDependency *> &clientDependencies() const;
Q_INVOKABLE void addClientDependency(QDependency *clientDependency);
Q_INVOKABLE void removeClientDependency(QDependency *clientDependency);
@@ -140,7 +140,7 @@ public:
Q_INVOKABLE void setOwningTemplateParameter(QTemplateParameter *owningTemplateParameter);
// Association ends from aggregated QConnectableElement
- Q_INVOKABLE const QList<QConnectorEnd *> *ends() const;
+ Q_INVOKABLE const QList<QConnectorEnd *> &ends() const;
Q_INVOKABLE QConnectableElementTemplateParameter *templateParameter() const;
Q_INVOKABLE void setTemplateParameter(QConnectableElementTemplateParameter *templateParameter);
@@ -164,10 +164,9 @@ public:
Q_INVOKABLE void setOperation(QOperation *operation);
Q_INVOKABLE QValueSpecification *defaultValue() const;
Q_INVOKABLE void setDefaultValue(QValueSpecification *defaultValue);
- Q_INVOKABLE const QSet<QParameterSet *> *parameterSets() const;
+ Q_INVOKABLE const QSet<QParameterSet *> &parameterSets() const;
Q_INVOKABLE void addParameterSet(QParameterSet *parameterSet);
Q_INVOKABLE void removeParameterSet(QParameterSet *parameterSet);
- virtual void registerMetaTypes() const;
protected:
explicit QParameter(QParameterPrivate &dd, QWrappedObject *parent = 0, QWrappedObject *wrapper = 0);
@@ -179,10 +178,6 @@ private:
QT_END_NAMESPACE_QTUML
-Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE_QTUML(QParameter) *)
-Q_DECLARE_METATYPE(const QSet<QT_PREPEND_NAMESPACE_QTUML(QParameter) *> *)
-Q_DECLARE_METATYPE(const QList<QT_PREPEND_NAMESPACE_QTUML(QParameter) *> *)
-
QT_END_HEADER
#endif // QTUML_QPARAMETER_H