-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMainPageForm.ui.qml
73 lines (63 loc) · 2.02 KB
/
MainPageForm.ui.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
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.1
import iproapps.besttodolist 1.0
Item {
id: rootId
property alias listView: listView
property alias toolButton: addToDoButton
property alias toDoTextField: toDoTextField
property alias newTaskInputRowId: newTaskInputRowId
property alias createTaskButtonId: createTaskButtonId
property alias colorPickerId: colorPickerId
property int colorPickerLeftMargin: 50
ColumnLayout {
id: columnLayout
anchors.fill: parent
spacing: 30
ToolButton {
anchors.leftMargin: 10
id: addToDoButton
text: qsTr("+ New To Do")
}
Text {
id: blankListTextId
anchors.centerIn: parent
text: qsTr("Good job! Your To-Do list is blank.")
visible: !listView.count
}
RowLayout {
id: newTaskInputRowId
visible: false
anchors.leftMargin: 10
z: 1
TextArea {
id: toDoTextField
enabled: false
wrapMode: TextEdit.WordWrap
Layout.maximumWidth: rootId.width - colorPickerId.width - colorPickerLeftMargin - createTaskButtonId.width
placeholderText: qsTr("Type new TO DO here...")
}
ColorPicker {
id: colorPickerId
anchors.leftMargin: colorPickerLeftMargin
z: 1
}
ToolButton {
id: createTaskButtonId
text: qsTr("\uE109")
font.family: "Segoe MDL2 Assets"
width: 25
height: 25
anchors.verticalCenter: parent.verticalCenter
}
}
ListView {
id: listView
anchors {left: parent.left; right: parent.right}
Layout.fillHeight: true
boundsBehavior: Flickable.StopAtBounds
highlightRangeMode: ListView.NoHighlightRange
}
}
}