aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quickcontrols/font/data/inheritance-dynamicchildcontrol.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quickcontrols/font/data/inheritance-dynamicchildcontrol.qml')
-rw-r--r--tests/auto/quickcontrols/font/data/inheritance-dynamicchildcontrol.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/quickcontrols/font/data/inheritance-dynamicchildcontrol.qml b/tests/auto/quickcontrols/font/data/inheritance-dynamicchildcontrol.qml
new file mode 100644
index 0000000000..18305058bc
--- /dev/null
+++ b/tests/auto/quickcontrols/font/data/inheritance-dynamicchildcontrol.qml
@@ -0,0 +1,28 @@
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+import QtQuick.Controls
+
+ApplicationWindow {
+ id: window
+
+ property Control control
+ property Control child
+ property Control grandChild
+
+ Item {
+ id: childItem
+ }
+
+ Component {
+ id: component
+ Control { }
+ }
+
+ Component.onCompleted: {
+ control = component.createObject(childItem)
+ child = component.createObject(control)
+ grandChild = component.createObject(child)
+ }
+}