aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-09-06 16:43:27 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-09-06 16:43:27 -0300
commit31f8103187d2e27b1bb76eaed10dc9c9be226c90 (patch)
tree5b0d6a0a6bf07aaf213c482c61860a2784cd678f /examples
parent0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425 (diff)
downloadqmenumodel-31f8103187d2e27b1bb76eaed10dc9c9be226c90.tar.gz
qmenumodel-31f8103187d2e27b1bb76eaed10dc9c9be226c90.tar.bz2
qmenumodel-31f8103187d2e27b1bb76eaed10dc9c9be226c90.zip
Implemented QDBusActionGroup.
Diffstat (limited to 'examples')
-rw-r--r--examples/MenuFactory.qml2
-rw-r--r--examples/MenuSection.qml3
-rw-r--r--examples/main.qml7
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()
}
}
}