diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-11 09:15:32 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-11 09:15:32 -0300 |
commit | f430d60b0a1a458985d41cb964b1a6e569c2e63e (patch) | |
tree | d37c08a53126c066138b765fd16e666558141ac6 | |
parent | 7c27fad278a0a41e7a1488b06a94021f2d468461 (diff) | |
download | qmenumodel-f430d60b0a1a458985d41cb964b1a6e569c2e63e.tar.gz qmenumodel-f430d60b0a1a458985d41cb964b1a6e569c2e63e.tar.bz2 qmenumodel-f430d60b0a1a458985d41cb964b1a6e569c2e63e.zip |
Added comments on qml file used in tests.
-rw-r--r-- | tests/client/loadmodel.qml | 2 |
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; |