From f430d60b0a1a458985d41cb964b1a6e569c2e63e Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Thu, 11 Oct 2012 09:15:32 -0300 Subject: Added comments on qml file used in tests. --- tests/client/loadmodel.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/client/loadmodel.qml') 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; -- cgit v1.2.3