-
Notifications
You must be signed in to change notification settings - Fork 0
/
GroupsActivity.qml
93 lines (76 loc) · 2.18 KB
/
GroupsActivity.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0
import QtGraphicalEffects 1.0
Item {
objectName: "groupsActivity"
property bool sorting: true
function refresh() {
groupsListModel.setParameter(":sorting", sorting ? "ASC" : "DESC");
groupsListModel.refresh();
}
Component {
id: groupsHeading
Item {
anchors {
left: parent.left
right: parent.right
}
height: 40
Item {
anchors {
top: parent.top
bottom: parent.bottom
left: parent.left
right: parent.right
leftMargin: 16
rightMargin: 16
}
Text {
text: origgpcdglob
font.bold: true
anchors.verticalCenter: parent.verticalCenter
color: "#607D8B"
}
}
}
}
Component {
id: groupsDelegate
Item {
anchors {
left: parent.left
right: parent.right
}
height: 40
Text {
anchors {
verticalCenter: parent.verticalCenter
leftMargin: 16
left: parent.left
}
font.pixelSize: 13
text: origgpfr
}
MouseArea {
anchors.fill: parent
onClicked: {
stack.stackItems[6].pageTitle = origgpfr;
stack.stackItems[6].column = origgpcd;
stack.stackItems[6].name = origgpfr;
stack.stackItems[6].refresh();
stack.push(stack.stackItems[6]);
}
}
}
}
ListView {
anchors.fill: parent
model: groupsListModel
delegate: groupsDelegate
section.property: "categoryName"
section.criteria: ViewSection.FullString
section.delegate: groupsHeading
ScrollBar.vertical: ScrollBar {}
}
}