From 0dfd3d4cd4214a732e4a5cda59fd4dfc082b8425 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Wed, 5 Sep 2012 16:15:39 -0300 Subject: Initial import. --- examples/MenuSection.qml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 examples/MenuSection.qml (limited to 'examples/MenuSection.qml') diff --git a/examples/MenuSection.qml b/examples/MenuSection.qml new file mode 100644 index 0000000..2a1b6c9 --- /dev/null +++ b/examples/MenuSection.qml @@ -0,0 +1,29 @@ +import QtQuick 1.1 +import Ubuntu.Components 0.1 +import Ubuntu.Components.ListItems 0.1 as ListItem + + +Item { + property variant menu + width: parent.width + height: contents.height + + Column { + id: contents + width: parent.width + + ListItem.Header { + text: menu.label + } + + Repeater { + model: menu ? menu.linkSection : undefined + + MenuFactory { + menu: model + } + } + + ListItem.Divider { } + } +} -- cgit v1.2.3