aboutsummaryrefslogtreecommitdiff
path: root/examples/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/main.qml')
-rw-r--r--examples/main.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/main.qml b/examples/main.qml
index 857351c..0615a63 100644
--- a/examples/main.qml
+++ b/examples/main.qml
@@ -19,12 +19,11 @@ Rectangle {
busType: 1
busName: "com.ubuntu.networksettings"
objectPath: "/com/ubuntu/networksettings"
- onConnected: {
- console.log("Menu appears ")
+ onStatusChanged: {
+ console.log("Menu model status update: " + status)
}
}
-
ListView {
id: mainMenu
anchors.fill: parent
@@ -36,7 +35,7 @@ Rectangle {
}
Component.onCompleted: {
- menuModel.connect()
+ menuModel.start()
}
}
}