diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client/loadmodel.qml | 5 | ||||
-rw-r--r-- | tests/client/loadmodel2.qml | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/client/loadmodel.qml b/tests/client/loadmodel.qml index fcdb4ba..f51a183 100644 --- a/tests/client/loadmodel.qml +++ b/tests/client/loadmodel.qml @@ -18,7 +18,7 @@ */ import QtQuick 2.0 -import QMenuModel 0.1 +import QMenuModel 1.0 Item { id: root @@ -44,9 +44,8 @@ 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, ""); + var model = Qt.createQmlObject("import QMenuModel 1.0; QDBusMenuModel { id: menuModel; busType: globalBusType; busName: globalBusName; objectPath: globalObjectPath; }", view, ""); model.start(); view.model = model; } } - diff --git a/tests/client/loadmodel2.qml b/tests/client/loadmodel2.qml index 4e283bb..5d1f43b 100644 --- a/tests/client/loadmodel2.qml +++ b/tests/client/loadmodel2.qml @@ -18,7 +18,7 @@ */ import QtQuick 2.0 -import QMenuModel 0.1 +import QMenuModel 1.0 Item { width: 100 @@ -38,4 +38,3 @@ Item { Component.onCompleted: menuModel.start() } - |