From 31f8103187d2e27b1bb76eaed10dc9c9be226c90 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Thu, 6 Sep 2012 16:43:27 -0300 Subject: Implemented QDBusActionGroup. --- examples/MenuFactory.qml | 2 +- examples/MenuSection.qml | 3 ++- examples/main.qml | 7 +++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'examples') 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() } } } -- cgit v1.2.3