aboutsummaryrefslogtreecommitdiff
path: root/examples/MenuSection.qml
blob: 2a1b6c9d97d3e5e4d600ee373f114fa3bb358062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 { }
    }
}