summaryrefslogtreecommitdiffstats
path: root/src/uml/qstereotype.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/qstereotype.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/qstereotype.h')
-rw-r--r--src/uml/qstereotype.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/uml/qstereotype.h b/src/uml/qstereotype.h
index a4e5c1b9..55fa8054 100644
--- a/src/uml/qstereotype.h
+++ b/src/uml/qstereotype.h
@@ -65,7 +65,7 @@ class Q_UML_EXPORT QStereotype : public QClass
{
Q_OBJECT
- Q_PROPERTY(const QSet<QImage *> * icons READ icons)
+ Q_PROPERTY(QSet<QImage *> icons READ icons)
Q_PROPERTY(QProfile * profile READ profile STORED false)
Q_DISABLE_COPY(QStereotype)
@@ -76,14 +76,13 @@ public:
virtual ~QStereotype();
// Association ends from QStereotype
- Q_INVOKABLE const QSet<QImage *> *icons() const;
+ Q_INVOKABLE const QSet<QImage *> &icons() const;
Q_INVOKABLE void addIcon(QImage *icon);
Q_INVOKABLE void removeIcon(QImage *icon);
Q_INVOKABLE QProfile *profile() const;
// Operations
Q_INVOKABLE QProfile *containingProfile() const;
- virtual void registerMetaTypes() const;
protected:
explicit QStereotype(QStereotypePrivate &dd, QWrappedObject *parent = 0, QWrappedObject *wrapper = 0);
@@ -91,10 +90,6 @@ protected:
QT_END_NAMESPACE_QTUML
-Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE_QTUML(QStereotype) *)
-Q_DECLARE_METATYPE(const QSet<QT_PREPEND_NAMESPACE_QTUML(QStereotype) *> *)
-Q_DECLARE_METATYPE(const QList<QT_PREPEND_NAMESPACE_QTUML(QStereotype) *> *)
-
QT_END_HEADER
#endif // QTUML_QSTEREOTYPE_H