summaryrefslogtreecommitdiffstats
path: root/examples/uml/xmi-read
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-03-05 11:14:29 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-03-05 15:17:18 +0100
commite2812e4ae6098b6aacbe2428106ea056e0a35eed (patch)
tree47c407584b44b89db8e774010a969bcda3967298 /examples/uml/xmi-read
parentfb81585888ac1a493b581db7d543740cc120429a (diff)
Provide major refactoring for correct declaration of properties
The use of macro QT_BEGIN_NAMESPACE_QTMOF/UML has been removed since MOC need a explicit namespace declaration in order to auto-declare metatypes with namespace information. Similarly, all properties are now declared using fully qualified class names. In addition, QtMof and QtUml namespaces were renamed to QtMofNS and QtUmlNS in order to prevent ambiguity. Change-Id: I8a1692a039101b56c1b1b0c76c59b1f963eb9d53 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'examples/uml/xmi-read')
-rw-r--r--examples/uml/xmi-read/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/uml/xmi-read/main.cpp b/examples/uml/xmi-read/main.cpp
index fcc5832b..621bc2e4 100644
--- a/examples/uml/xmi-read/main.cpp
+++ b/examples/uml/xmi-read/main.cpp
@@ -11,7 +11,7 @@ int main ()
return 1;
}
- QXmiReader reader;
+ QXmiReader reader(0, true);
QWrappedObject *rootElement = reader.readFile(&file);
if (rootElement)
qDebug() << "Successfully read object with name" << rootElement->objectName();