aboutsummaryrefslogtreecommitdiffstats
path: root/DemoApplication
diff options
context:
space:
mode:
authorAntti Hölttä <AHoelttae@luxoft.com>2018-12-04 14:48:36 +0100
committerAntti Hölttä <AHoelttae@luxoft.com>2019-03-18 16:33:53 +0100
commitc58955328688a73bea53f65cd38dd3f07229b3e9 (patch)
tree33ae5c8968d40c18cc9a7ddfd3e1a19efd579be5 /DemoApplication
parent7a99a87e91f316e312bef8260534748d8b0df12c (diff)
cursor trapping and navigation out of a scope works now as intended
done by precopying the list of candidates. Could avoid extra list copies if the algorithm traversed the tree, but this is simpler and works for now
Diffstat (limited to 'DemoApplication')
-rw-r--r--DemoApplication/pages/Page3.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/DemoApplication/pages/Page3.qml b/DemoApplication/pages/Page3.qml
index e9c47e1..307dc50 100644
--- a/DemoApplication/pages/Page3.qml
+++ b/DemoApplication/pages/Page3.qml
@@ -54,6 +54,7 @@ Item {
anchors.fill: parent
CursorNavigation.acceptsCursor: true
CursorNavigation.escapeTarget: defaultButton
+ CursorNavigation.trapsCursor: trapCheckBox.checked
//redefine the controls for this scope
//(default arrow keys will still work as well, unless reassigned here)
@@ -65,7 +66,7 @@ Item {
Grid {
spacing: 5
columns: 2
- rows: 2
+ rows: 3
CNButton {
text: "sb1"
@@ -83,6 +84,11 @@ Item {
text: "sb4 (default focus)"
focus: true
}
+
+ CNCheckBox {
+ id: trapCheckBox
+ text: "trap cursor"
+ }
}
}
}