blob: 52c0f02d8b096d55c2469cb61718d1564ac0aaac (
plain)
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
|
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
GridLayout {
property alias task: task
property alias taskTitle: taskTitle
id: task
width: fillWidth
height: 72
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
Layout.fillWidth: true
Layout.fillHeight: true
ItemDelegate {
id: itemDelegate
Layout.fillWidth: parent.width
Layout.fillHeight: parent.height
GridLayout {
anchors.fill: parent
CheckBox {
Layout.leftMargin: 4
display: AbstractButton.IconOnly
font.family: "Google Sans"
font.pointSize: 16
font.weight: Font.Medium
}
ColumnLayout {
Layout.leftMargin: 14
spacing: 0
Layout.fillWidth: true
Layout.fillHeight: true
Label {
id: taskTitle
text: qsTr("Task title")
Layout.columnSpan: 0
Layout.rowSpan: 0
verticalAlignment: Text.AlignVCenter
Layout.topMargin: 8
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
font.weight: Font.Medium
font.family: "Work Sans"
font.pointSize: 16
Layout.fillWidth: true
}
Label {
text: qsTr("Truncated task description")
Layout.topMargin: 4
Layout.columnSpan: 0
Layout.rowSpan: 0
verticalAlignment: Text.AlignVCenter
Layout.bottomMargin: 8
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
color: "#8a000000"
Layout.fillWidth: true
}
}
Image {
id: chevronRight
Layout.minimumHeight: 24
Layout.minimumWidth: 24
Layout.rightMargin: 12
opacity: 0.54
sourceSize.height: 24
sourceSize.width: 24
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
source: "/assets/chevron-right-24px.svg"
}
}
}
}
|