-
Notifications
You must be signed in to change notification settings - Fork 2
/
ListPage.qml
141 lines (132 loc) · 3.6 KB
/
ListPage.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
import QtQuick 2.4
import QtQuick.Controls 1.4
BasePage {
id: root
lightContent: false
ListModel {
id: sessions
ListElement {
title: "Introduction to QML – also known as Qt Quick"
presenter: "Jesper Pedersen & Paul Lemire"
room: "A08"
color: "red"
}
ListElement {
title: "Model/View programming in Qt"
presenter: "Tobias Konig"
room: "A04"
color: "orange"
}
ListElement {
title: "Debugging and Profiling Qt applications"
presenter: "Volker Krause & Milian Wolff"
room: "A04"
color: "yellow"
}
ListElement {
title: "What’s new in C++11/C++14 (with a Qt5 focus)"
presenter: "Thomas McGuire"
room: "A04"
color: "blue"
}
ListElement {
title: "Introduction to Multithreaded Programming with Qt"
presenter: "Kevin Kramer"
room: "A04"
color: "lightblue"
}
ListElement {
title: "Introduction to Modern OpenGL with Qt"
presenter: "Sean Harmer"
room: "A04"
color: "green"
}
ListElement {
title: "Qt for Mobile Platforms – Android/iOS"
presenter: "Bogdan Vatra & Mike Krus"
room: "A04"
color: "darkgreen"
}
ListElement {
title: "Introduction to Testing Qt applications with Squish"
presenter: "Tobias Natterlund"
room: "A04"
color: "orange"
}
}
Component {
id: sessionCell
Item {
height: 60
Rectangle {
color: model.color
border.color: "black"
border.width: .5
border.pixelAligned: false
width: 5
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.margins: 3
radius: 3
}
Text {
x: 20
y: 2
width: root.width - x - 5
// height: parent.height
text: model.title
font.pixelSize: 15
lineHeight: .8
wrapMode: Text.WordWrap
}
Text {
x: 20
y: parent.height - 14 - height
text: model.presenter
font.italic: true
font.pixelSize: 10
}
Text {
x: 20
y: parent.height - 4 - height
text: "Room: " + model.room
font.pixelSize: 08
color: "#aaa"
}
}
}
Rectangle {
id: titleBar
height: 64
width: parent.width
color: "#eee"
Text {
anchors.centerIn: parent
anchors.verticalCenterOffset: 10
font.pixelSize: 24
font.bold: true
text: "KDAB Trainings"
}
Rectangle {
height: 1
y: parent.height - height
width: parent.width
color: "#ccc"
}
}
ListView {
width: parent.width
y: titleBar.height
height: parent.height - y
model: sessions
delegate: sessionCell
clip: true
}
TextField {
x: 10
width: parent.width - 20
anchors.bottom: parent.bottom
anchors.bottomMargin: 50
}
}