diff options
author | Antti Hölttä <AHoelttae@luxoft.com> | 2018-12-07 10:52:06 +0100 |
---|---|---|
committer | Antti Hölttä <AHoelttae@luxoft.com> | 2019-03-18 16:33:53 +0100 |
commit | 6fd358d2fd82cd06dbe25a019e7de19817ba3017 (patch) | |
tree | 4098c93b7a6728b6b2c3c1d2765fac0a85e42876 /DemoApplication | |
parent | 65b3492325672bc24400edbdeb0aa91b46cb8c8e (diff) |
Add available-function for a cursor navigable
Availability means that the item first of all accepting cursor,
visible, enabled, and within its parent's geometry. This value
is meant for the algorithms to define if item is navigable.
Diffstat (limited to 'DemoApplication')
-rw-r--r-- | DemoApplication/main.qml | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/DemoApplication/main.qml b/DemoApplication/main.qml index 58f1af5..bfb7840 100644 --- a/DemoApplication/main.qml +++ b/DemoApplication/main.qml @@ -13,28 +13,34 @@ ApplicationWindow { visible: true title: qsTr("Cursor Navigation Demo Application") - header: TabBar { - id: tabBar - width: parent.width - CNTabButton { - text: qsTr("Page 1") - } - CNTabButton { - text: qsTr("Page 2") - } - CNTabButton { - text: qsTr("Page 3") - } - CNTabButton { - text: qsTr("Page 4") - } - CNTabButton { - text: qsTr("Page 5") - } - CNTabButton { - text: qsTr("Map") + header: + + TabBar { + id: tabBar + width: window.width + + CursorNavigation.acceptsCursor: true + + CNTabButton { + text: qsTr("Page 1") + focus: true + } + CNTabButton { + text: qsTr("Page 2") + } + CNTabButton { + text: qsTr("Page 3") + } + CNTabButton { + text: qsTr("Page 4") + } + CNTabButton { + text: qsTr("Page 5") + } + CNTabButton { + text: qsTr("Map") + } } - } contentData: StackLayout { anchors.fill: parent |