diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/MenuFactory.qml | 2 | ||||
-rw-r--r-- | examples/MenuSection.qml | 3 | ||||
-rw-r--r-- | examples/main.qml | 7 |
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/MenuFactory.qml b/examples/MenuFactory.qml index 2729268..faecd9b 100644 --- a/examples/MenuFactory.qml +++ b/examples/MenuFactory.qml @@ -4,7 +4,7 @@ import Ubuntu.Components.ListItems 0.1 as ListItem Loader { property variant menu - height: childrenRect.height + //height: childrenRect.height onMenuChanged: { if (menu) { diff --git a/examples/MenuSection.qml b/examples/MenuSection.qml index 2a1b6c9..170fa89 100644 --- a/examples/MenuSection.qml +++ b/examples/MenuSection.qml @@ -10,7 +10,7 @@ Item { Column { id: contents - width: parent.width + width: parent.width ListItem.Header { text: menu.label @@ -20,6 +20,7 @@ Item { model: menu ? menu.linkSection : undefined MenuFactory { + width: contents.width menu: model } } 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() } } } |