diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-07-26 15:04:50 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-07-26 15:04:50 +0200 |
commit | d57caa61f787c4bd7cb0823eadbbc5d84f542f0a (patch) | |
tree | e29cdf2e161a31a5c79bc1ad854e5ba2a74ded33 /examples | |
parent | 58afcb80014d14ab95a031e19bdc11664c8a1d5b (diff) | |
download | qmenumodel-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')
-rw-r--r-- | examples/unityqmlmenumodel.qml | 22 |
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 + } } } } |