aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickfocusscope/data/qtBug13380.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickfocusscope/data/qtBug13380.qml')
-rw-r--r--tests/auto/quick/qquickfocusscope/data/qtBug13380.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickfocusscope/data/qtBug13380.qml b/tests/auto/quick/qquickfocusscope/data/qtBug13380.qml
new file mode 100644
index 0000000000..29de046b38
--- /dev/null
+++ b/tests/auto/quick/qquickfocusscope/data/qtBug13380.qml
@@ -0,0 +1,24 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 400; height: 400
+
+ property bool showRect: false
+ onShowRectChanged: if (showRect) rect.visible = true
+ property bool noFocus: !fs2.activeFocus
+
+ FocusScope {
+ id: fs1
+ focus: true
+ }
+ Rectangle {
+ id: rect
+ visible: false
+ FocusScope {
+ id: fs2
+ Rectangle {
+ focus: true
+ }
+ }
+ }
+}