summaryrefslogtreecommitdiff
path: root/prototype_2016/third_party/qml-material/demo/FormsDemo.qml
diff options
context:
space:
mode:
Diffstat (limited to 'prototype_2016/third_party/qml-material/demo/FormsDemo.qml')
-rw-r--r--prototype_2016/third_party/qml-material/demo/FormsDemo.qml142
1 files changed, 0 insertions, 142 deletions
diff --git a/prototype_2016/third_party/qml-material/demo/FormsDemo.qml b/prototype_2016/third_party/qml-material/demo/FormsDemo.qml
deleted file mode 100644
index 4a764c8..0000000
--- a/prototype_2016/third_party/qml-material/demo/FormsDemo.qml
+++ /dev/null
@@ -1,142 +0,0 @@
1import QtQuick 2.4
2import QtQuick.Layouts 1.1
3import Material 0.2
4import Material.ListItems 0.1 as ListItem
5import Material.Extras 0.1
6
7Item {
8 View {
9 anchors.centerIn: parent
10
11 width: dp(350)
12 height: column.implicitHeight + dp(32)
13
14 elevation: 1
15 radius: dp(2)
16
17 ColumnLayout {
18 id: column
19
20 anchors {
21 fill: parent
22 topMargin: dp(16)
23 bottomMargin: dp(16)
24 }
25
26 Label {
27 id: titleLabel
28
29 anchors {
30 left: parent.left
31 right: parent.right
32 margins: dp(16)
33 }
34
35 style: "title"
36 text: "Edit shipping info"
37 }
38
39 Item {
40 Layout.fillWidth: true
41 Layout.preferredHeight: dp(8)
42 }
43
44 ListItem.Standard {
45 action: Icon {
46 anchors.centerIn: parent
47 name: "action/account_circle"
48 }
49
50 content: TextField {
51 anchors.centerIn: parent
52 width: parent.width
53
54 text: "Alex Nelson"
55 }
56 }
57
58 ListItem.Standard {
59 action: Icon {
60 anchors.centerIn: parent
61 name: "maps/place"
62 }
63
64 content: TextField {
65 anchors.centerIn: parent
66 width: parent.width
67
68 text: "100 Main Street"
69 }
70 }
71
72 ListItem.Standard {
73 action: Item {}
74
75 content: RowLayout {
76 anchors.centerIn: parent
77 width: parent.width
78
79 TextField {
80 Layout.alignment: Qt.AlignVCenter
81 Layout.preferredWidth: 0.4 * parent.width
82
83 text: "New York"
84 }
85
86 MenuField {
87 Layout.alignment: Qt.AlignVCenter
88 Layout.preferredWidth: 0.2 * parent.width
89
90 model: ["NY", "NC", "ND"]
91 }
92
93 TextField {
94 Layout.alignment: Qt.AlignVCenter
95 Layout.preferredWidth: 0.3 * parent.width
96
97 text: "10011"
98 }
99 }
100 }
101
102 ListItem.Standard {
103 action: Icon {
104 anchors.centerIn: parent
105 name: "communication/email"
106 }
107
108 content: TextField {
109 anchors.centerIn: parent
110 width: parent.width
111
112 placeholderText: "Email"
113 }
114 }
115
116 Item {
117 Layout.fillWidth: true
118 Layout.preferredHeight: dp(8)
119 }
120
121 RowLayout {
122 Layout.alignment: Qt.AlignRight
123 spacing: dp(8)
124
125 anchors {
126 right: parent.right
127 margins: dp(16)
128 }
129
130 Button {
131 text: "Cancel"
132 textColor: Theme.primaryColor
133 }
134
135 Button {
136 text: "Done"
137 textColor: Theme.primaryColor
138 }
139 }
140 }
141 }
142}