aboutsummaryrefslogtreecommitdiffstats
path: root/tests/4WayTest.qml
diff options
context:
space:
mode:
authorAntti Hölttä <AHoelttae@luxoft.com>2019-03-05 16:16:25 +0100
committerAntti Hölttä <AHoelttae@luxoft.com>2019-03-18 16:42:53 +0100
commit13427797da2464f60412b80b2ad2c4559fc63711 (patch)
treeae2bbbe7c19397da039298512813a8b7a3f4d060 /tests/4WayTest.qml
parent61e8f03d59cfd748b2a1f83dd51bbb90acd8c7cc (diff)
Add test for 4 way navigation
Diffstat (limited to 'tests/4WayTest.qml')
-rw-r--r--tests/4WayTest.qml51
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/4WayTest.qml b/tests/4WayTest.qml
new file mode 100644
index 0000000..2dac77d
--- /dev/null
+++ b/tests/4WayTest.qml
@@ -0,0 +1,51 @@
+import QtQuick 2.0
+import CursorNavigation 1.0
+
+Item {
+ width: 200
+ height: 200
+
+
+ CNRect {
+ objectName: "left"
+ x: 20
+ y: 60
+ CursorNavigation.objectName: "leftAttached"
+ }
+
+ CNRect {
+ objectName: "center"
+ x: 60
+ y: 60
+ }
+
+ CNRect {
+ objectName: "top"
+ x: 60
+ y: 20
+ }
+
+ CNRect {
+ objectName: "bottom"
+ x: 60
+ y: 100
+ }
+
+ CNRect {
+ objectName: "right"
+ x: 100
+ y: 60
+ }
+
+ CNRect {
+ objectName: "right1"
+ x: 140
+ y: 44
+ }
+
+ CNRect {
+ objectName: "right2"
+ x: 141
+ y: 76
+ }
+}