summaryrefslogtreecommitdiffstats
path: root/examples/uml
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-06-13 12:08:24 +0000
committerSandro S. Andrade <sandroandrade@kde.org>2013-06-13 17:09:44 +0200
commit57237a598f7bcb042b16f767af4d6c5d45811cb8 (patch)
tree46a3a457c412bd638bdf1c415ddb1b08744c40c6 /examples/uml
parent1c8418570b36f07f960cfdda211318cba652d0ae (diff)
Add moving of QML-based representation of UML elements
Change-Id: I8e5176725e7004fc8e1049384a325b16a6fd1ee7 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'examples/uml')
-rw-r--r--examples/uml/declarative/umlclass.qml4
-rw-r--r--examples/uml/duse-mt/mainwindow.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/uml/declarative/umlclass.qml b/examples/uml/declarative/umlclass.qml
index 338ea162..9014e82e 100644
--- a/examples/uml/declarative/umlclass.qml
+++ b/examples/uml/declarative/umlclass.qml
@@ -39,9 +39,9 @@
**
****************************************************************************/
import QtQuick 2.0
-import QtModeling.QtUml 1.0
+import QtModeling.Uml 1.0
-Rectangle {
+Item {
width: 200
height: 200
UmlClass {
diff --git a/examples/uml/duse-mt/mainwindow.cpp b/examples/uml/duse-mt/mainwindow.cpp
index 93584a3c..f778ae99 100644
--- a/examples/uml/duse-mt/mainwindow.cpp
+++ b/examples/uml/duse-mt/mainwindow.cpp
@@ -116,7 +116,7 @@ MainWindow::MainWindow(QWidget *parent) :
setCentralWidget(QWidget::createWindowContainer(_quickView, this));
QQmlComponent component(_quickView->engine());
- component.setData("import QtQuick 2.0\nimport QtModeling.QtUml 1.0\n\nRectangle { width: 200; height: 200; UmlClass { name: \"MyClass\" } }", QUrl());
+ component.setData("import QtQuick 2.0\nimport QtModeling.Uml 1.0\n\nRectangle { width: 200; height: 200; UmlClass { name: \"MyClass\" } }", QUrl());
QQuickItem *item = qobject_cast<QQuickItem *>(component.create());
item->setParentItem(_quickView->contentItem());
_quickView->setResizeMode(QQuickView::SizeRootObjectToView);