aboutsummaryrefslogtreecommitdiff
path: root/examples/unityqmlmenumodel.qml
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-07-26 15:04:50 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-07-26 15:04:50 +0200
commitd57caa61f787c4bd7cb0823eadbbc5d84f542f0a (patch)
treee29cdf2e161a31a5c79bc1ad854e5ba2a74ded33 /examples/unityqmlmenumodel.qml
parent58afcb80014d14ab95a031e19bdc11664c8a1d5b (diff)
downloadqmenumodel-d57caa61f787c4bd7cb0823eadbbc5d84f542f0a.tar.gz
qmenumodel-d57caa61f787c4bd7cb0823eadbbc5d84f542f0a.tar.bz2
qmenumodel-d57caa61f787c4bd7cb0823eadbbc5d84f542f0a.zip
Expose the state of a menu item's action in model.actionState
Diffstat (limited to 'examples/unityqmlmenumodel.qml')
-rw-r--r--examples/unityqmlmenumodel.qml22
1 files changed, 15 insertions, 7 deletions
diff --git a/examples/unityqmlmenumodel.qml b/examples/unityqmlmenumodel.qml
index 8028674..e1de3c8 100644
--- a/examples/unityqmlmenumodel.qml
+++ b/examples/unityqmlmenumodel.qml
@@ -63,13 +63,21 @@ Item {
Component {
id: slider
- Row {
- anchors.fill: parent
- Image {
- source: ext.minIcon
- }
- Image {
- source: ext.maxIcon
+ Rectangle {
+ width: listview.width
+ color: "#ddd"
+ height: 40
+ Row {
+ anchors.fill: parent
+ Image {
+ source: ext.minIcon
+ }
+ Text {
+ text: model.actionState
+ }
+ Image {
+ source: ext.maxIcon
+ }
}
}
}