From 13427797da2464f60412b80b2ad2c4559fc63711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20H=C3=B6ltt=C3=A4?= Date: Tue, 5 Mar 2019 16:16:25 +0100 Subject: Add test for 4 way navigation --- tests/4WayTest.qml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 tests/4WayTest.qml (limited to 'tests/4WayTest.qml') 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 + } +} -- cgit v1.2.3