aboutsummaryrefslogtreecommitdiffstats
path: root/DemoApplication/Page2Form.qml
diff options
context:
space:
mode:
Diffstat (limited to 'DemoApplication/Page2Form.qml')
-rw-r--r--DemoApplication/Page2Form.qml72
1 files changed, 72 insertions, 0 deletions
diff --git a/DemoApplication/Page2Form.qml b/DemoApplication/Page2Form.qml
index 34b9dc6..552c3e5 100644
--- a/DemoApplication/Page2Form.qml
+++ b/DemoApplication/Page2Form.qml
@@ -1,5 +1,6 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
+import CursorNavigation 1.0
Page {
width: 600
@@ -11,4 +12,75 @@ Page {
text: qsTr("You are on Page 2.")
anchors.centerIn: parent
}
+
+ ListView {
+ id: listView
+ x: 385
+ y: 19
+ width: 198
+ height: 359
+ delegate: Item {
+ x: 5
+ width: 80
+ height: 40
+
+ Row {
+ id: row1
+ Rectangle {
+ width: 40
+ height: 40
+ color: colorCode
+ }
+
+ Text {
+ text: name
+ anchors.verticalCenter: parent.verticalCenter
+ font.bold: true
+ }
+ spacing: 10
+ }
+ }
+ model: ListModel {
+ ListElement {
+ name: "Grey"
+ colorCode: "grey"
+ }
+
+ ListElement {
+ name: "Red"
+ colorCode: "red"
+ }
+
+ ListElement {
+ name: "Blue"
+ colorCode: "blue"
+ }
+
+ ListElement {
+ name: "Green"
+ colorCode: "green"
+ }
+ }
+ }
+
+ CNButton {
+ id: button
+ x: 95
+ y: 54
+ text: qsTr("Button")
+ }
+
+ CNButton {
+ id: button1
+ x: 95
+ y: 158
+ text: qsTr("Button")
+ }
+
+ CNButton {
+ id: button2
+ x: 95
+ y: 266
+ text: qsTr("Button")
+ }
}