aboutsummaryrefslogtreecommitdiff
path: root/tests/client/loadmodel2.qml
blob: dfe265d38815702e45924395daf066eaf90f07f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import QtQuick 2.0
import QMenuModel 0.1

Item {
    width: 100
    height: 100

    QDBusMenuModel {
        id: menuModel
        busType: globalBusType
        busName: globalBusName
        objectPath: globalObjectPath
    }

    ListView {
        model: menuModel
        delegate: Item {}
    }

    Component.onCompleted: menuModel.start()
}