-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity.qml
69 lines (63 loc) · 2.18 KB
/
activity.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
import QtQuick 2.7
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.3
Flickable {
id: flickable
property var model
contentHeight: column.height
Column {
id: column
width: parent.width
padding: internal.viewMargin
spacing: 15
MyGroupBox {
title: "Resumo"
Label {
text: model.abstract
font.bold: false
width: parent.width
wrapMode: Text.WordWrap
}
}
MyGroupBox {
title: "Biografia do" + ((model.speakers.length > 1) ? "s":"") + " Palestrante" + ((model.speakers.length > 1) ? "s":"")
Column {
width: parent.width
spacing: 10
Repeater {
model: flickable.model.speakers
Label {
text: "<b>" + modelData.name + "</b> - " + modelData.resume
font.bold: false
width: parent.width
wrapMode: Text.WordWrap
}
}
}
}
MyGroupBox {
title: "Tipo da Atividade"
RowLayout {
Label { text: model.activity_type.icon; font.bold: false; font { family: fontAwesome.name; pointSize: 12 } }
Label { text: model.activity_type.name; font.bold: false }
}
}
MyGroupBox {
title: "Tags da Atividade"
GridLayout {
rows: flickable.model.activity_tags.length
columns: 2
flow: GridLayout.TopToBottom
Repeater {
model: flickable.model.activity_tags
Label { text: modelData.icon; Layout.preferredWidth: internal.maxIconWidth; horizontalAlignment: Text.AlignHCenter; font.bold: false; font { family: fontAwesome.name; pointSize: 12 } }
}
Repeater {
model: flickable.model.activity_tags
Label { text: modelData.name; font.bold: false }
}
}
}
}
ScrollIndicator.vertical: ScrollIndicator { }
}