-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroom.qml
38 lines (34 loc) · 861 Bytes
/
room.qml
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
30
31
32
33
34
35
36
37
38
import QtQuick 2.7
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.3
Item {
id: item
property var model
property StackView stackView
QtObject {
id: internal
property int padding: 10
}
Column {
anchors.fill: parent
padding: internal.padding
spacing: 15
GroupBox {
title: "Activities in " + model.name
width: parent.width-2*internal.padding
height: parent.height-2*internal.padding
ListView {
anchors.fill: parent
model: item.model.activities
delegate: ItemDelegate {
text: modelData.title
width: parent.width
}
}
}
}
MouseArea {
anchors.fill: parent
onClicked: stackView.pop()
}
}