-
Notifications
You must be signed in to change notification settings - Fork 0
/
Page1Form.ui.qml
85 lines (73 loc) · 1.8 KB
/
Page1Form.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
74
75
76
77
78
79
80
81
82
83
84
85
import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.LocalStorage 2.12
Page {
id: page
// width: appWindow.width
// height: appWindow.height
width: 400
font.pixelSize: 12
property alias page: page
property alias p1Button: button
property bool addButton: false
property alias listView: listView
property alias stackView: stackView
property alias note: note
property alias elementModel: elementModel
property alias label: label
header: Frame {
id: frame
x: 0
width: parent.width
height: 51
anchors.top: parent.top
anchors.topMargin: 0
background: Rectangle {
color: "#d0d0d0"
}
Button {
id: button
x: 521
y: -7
width: 40
height: 40
icon.source: addButton ? "images/go-previous.png" : "images/list.png"
anchors.right: parent.right
anchors.rightMargin: 15
spacing: 4
}
TextField {
id: label
x: 180
y: 4
width: 170
height: 30
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: button.verticalCenter
placeholderText: qsTr("Add New")
font.pointSize: 11
readOnly: true
background: Rectangle {
color: label.readOnly ? "transparent" : "#ece09a"
}
}
}
StackView {
id: stackView
anchors.fill: parent
initialItem: listView
}
ListModel {
id: elementModel
}
ListView {
id: listView
model: elementModel
delegate: Element {
id: element
}
}
Note {
id: note
}
}