summaryrefslogtreecommitdiffstats
path: root/examples/uml/nested-packages/main.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-10-06 11:31:46 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-10-06 16:28:28 +0200
commit3031fe1254052bdeffec90ca76e2f3649a971ae7 (patch)
tree1c53eeec8c4be183f600a8f17c7e156efa779ea1 /examples/uml/nested-packages/main.cpp
parente07d31eda9cc77f50fb6dbae8905384219171332 (diff)
Use plural form for multi-valued UML metamodel properties
Change-Id: Ia8ab1c48d0fb552aca0ae729507c18b63d4c448e Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'examples/uml/nested-packages/main.cpp')
-rw-r--r--examples/uml/nested-packages/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/uml/nested-packages/main.cpp b/examples/uml/nested-packages/main.cpp
index d78c48f2..ce605a7d 100644
--- a/examples/uml/nested-packages/main.cpp
+++ b/examples/uml/nested-packages/main.cpp
@@ -60,19 +60,19 @@ int main ()
QUmlComment *c4 = dynamic_cast<QUmlComment *>(c1->clone());
qDebug() << "c1 body:" << c4->body();
- foreach (QUmlComment *comment, c1->ownedComment())
+ foreach (QUmlComment *comment, c1->ownedComments())
qDebug() << "c1 owned comment body:" << comment->body();
qDebug() << "c4 body:" << c4->body();
- foreach (QUmlComment *comment, c4->ownedComment())
+ foreach (QUmlComment *comment, c4->ownedComments())
qDebug() << "c4 owned comment body:" << comment->body();
//c1->removeOwnedComment(c3);
qDebug() << "c3's parent:" << c3->asQObject()->parent();
- qDebug() << "Comment size:" << c1->ownedComment().size();
+ qDebug() << "Comment size:" << c1->ownedComments().size();
delete c2;
//c1->removeOwnedComment(c2);
- qDebug() << "Comment size:" << c1->ownedComment().size();
+ qDebug() << "Comment size:" << c1->ownedComments().size();
foreach(QObject *c, c1->asQObject()->property("ownedComment").value< QSet<QObject *> >())
qDebug() << c->objectName();