aboutsummaryrefslogtreecommitdiff
path: root/tests/client
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-10-11 09:15:32 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-10-11 09:15:32 -0300
commitf430d60b0a1a458985d41cb964b1a6e569c2e63e (patch)
treed37c08a53126c066138b765fd16e666558141ac6 /tests/client
parent7c27fad278a0a41e7a1488b06a94021f2d468461 (diff)
downloadqmenumodel-f430d60b0a1a458985d41cb964b1a6e569c2e63e.tar.gz
qmenumodel-f430d60b0a1a458985d41cb964b1a6e569c2e63e.tar.bz2
qmenumodel-f430d60b0a1a458985d41cb964b1a6e569c2e63e.zip
Added comments on qml file used in tests.
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/loadmodel.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/client/loadmodel.qml b/tests/client/loadmodel.qml
index 2eeb8e6..7a1f045 100644
--- a/tests/client/loadmodel.qml
+++ b/tests/client/loadmodel.qml
@@ -10,6 +10,7 @@ Item {
onResetChanged: {
if (reset) {
+ // destroy the current model and check if it will not crash the QML engine
view.model.destroy();
}
}
@@ -23,6 +24,7 @@ Item {
}
Component.onCompleted: {
+ // dynamically create the model to destroy it later
var model = Qt.createQmlObject("import QMenuModel 0.1; QDBusMenuModel { id: menuModel; busType: globalBusType; busName: globalBusName; objectPath: globalObjectPath; }", view, "");
model.start();
view.model = model;