aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktableview/data/tableviewfocus.qml
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-09-06 15:14:44 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-09-07 12:40:33 +0000
commit22023717774ca94b88e2b83756889b98e93aa9e3 (patch)
tree597003f07d722cca227e9dd527dcfc1ba8384758 /tests/auto/quick/qquicktableview/data/tableviewfocus.qml
parente99c203b77743fe7554663c12a98960d8514fb6b (diff)
QQuickTableView: remove focus for the delegate item itself, not only for the child
"isAncestorOf" will not include itself as an ancestor. So we need to check if the delegate item has focus as well, since we also want to remove focus for that case. This can e.g happen if the delegate is a TextInput directly. Change-Id: I5a5f5a7ec262eacdac64d72b0f41bca991dbab73 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktableview/data/tableviewfocus.qml')
-rw-r--r--tests/auto/quick/qquicktableview/data/tableviewfocus.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicktableview/data/tableviewfocus.qml b/tests/auto/quick/qquicktableview/data/tableviewfocus.qml
index 35f9c06587..c388e2c8de 100644
--- a/tests/auto/quick/qquicktableview/data/tableviewfocus.qml
+++ b/tests/auto/quick/qquicktableview/data/tableviewfocus.qml
@@ -57,9 +57,13 @@ Item {
Component {
id: tableViewDelegate
Item {
+ id: delegate
implicitWidth: 100
implicitHeight: 50
- property alias textInput: textInput
+ focus: true
+
+ property alias delegateRoot: delegate
+ property alias delegateChild: textInput
TextInput {
id: textInput