blob: 3125bef5ba710d6d7e1c5937fa040a883946c751 (
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
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
|
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Controls.Material 2.12
import QtQuick.Layouts 1.12
Page {
id: page
title: qsTr("Task detail page")
background: Rectangle {
color: "#FFFFFF"
}
property alias taskTitle: taskTitle
property alias taskDescription: taskDescription
property alias backButton: backButton
header: ToolBar {
background: Rectangle {
color: "#FAFFFFFF"
}
RowLayout {
id: toolBar
anchors.fill: parent
spacing: 0
ToolButton {
id: backButton
icon.name: "back-button"
icon.source: "/components/icons/arrow-back-24px.svg"
highlighted: true
}
ToolButton {
id: toolMoreButton
icon.name: "more-button"
icon.source: "/components/icons/more-vert-24px.svg"
highlighted: true
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
}
}
}
RowLayout {
id: taskTitleLayout
height: 56
anchors.top: parent.top
anchors.topMargin: 0
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
Layout.fillWidth: true
TextField {
id: taskTitle
Layout.rightMargin: 16
Layout.leftMargin: 66
Layout.fillWidth: true
placeholderText: qsTr("Enter task title")
}
}
RowLayout {
id: taskDescriptionLayout
width: parent.width
height: 56
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: taskTitleLayout.bottom
anchors.topMargin: 24
Image {
id: descriptionIcon
sourceSize.height: 24
sourceSize.width: 24
Layout.leftMargin: 12
opacity: 0.54
Layout.minimumHeight: 24
Layout.minimumWidth: 24
Layout.preferredHeight: 24
Layout.preferredWidth: 24
source: "/components/icons/notes-24px.svg"
}
TextField {
id: taskDescription
Layout.rightMargin: 16
Layout.leftMargin: 24
Layout.fillWidth: true
placeholderText: qsTr("Enter task description")
}
}
RowLayout {
id: attachmentLayout
height: 56
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
anchors.top: taskDescriptionLayout.bottom
anchors.topMargin: 24
Image {
id: attachmentIcon
sourceSize.height: 24
sourceSize.width: 24
Layout.leftMargin: 12
opacity: 0.54
Layout.minimumHeight: 24
Layout.minimumWidth: 24
Layout.preferredHeight: 24
Layout.preferredWidth: 24
source: "/components/icons/attachment-24px.svg"
}
Label {
color: "#000000"
text: qsTr("Attachment")
font.weight: Font.Medium
font.pixelSize: 16
font.family: "Work Sans"
verticalAlignment: Text.AlignVCenter
Layout.leftMargin: 24
Layout.fillWidth: true
}
}
}
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
|