4 import 'config.js' as Config
8 property variant items: []
10 signal response(int index)
21 model: contextMenuArea.items
23 header: Item { height: Config.headerHeight * 2 }
24 footer: Item { height: Config.headerHeight }
26 delegate: SelectableItem {
28 anchors.leftMargin: Config.switcherWidth
32 verticalCenter: parent.verticalCenter
35 font.pixelSize: parent.height * .3
36 text: items[index].text
39 contextMenuArea.response(index)
40 contextMenuArea.close()
41 items[index].trigger()