aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_popup.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-21 15:33:11 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-21 19:54:25 +0000
commit40aa7c39671400d96cf5f87fa737264912585ca0 (patch)
treedf2c4f2f7860af2966809c562d3320e7b4151248 /tests/auto/controls/data/tst_popup.qml
parent9d590d6313ba579a2c2112e4b314cacd05d09a50 (diff)
Popup: make ApplicationWindow attached properties available
Change-Id: Idde9fb49c222abc1ceabd15256695fd1961a9f76 Task-number: QTBUG-51991 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/controls/data/tst_popup.qml')
-rw-r--r--tests/auto/controls/data/tst_popup.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_popup.qml b/tests/auto/controls/data/tst_popup.qml
index 00ac3979..0a51c138 100644
--- a/tests/auto/controls/data/tst_popup.qml
+++ b/tests/auto/controls/data/tst_popup.qml
@@ -835,4 +835,16 @@ TestCase {
window.destroy()
}
+
+ function test_attached_applicationwindow() {
+ var control = popupTemplate.createObject(applicationWindow.contentItem)
+ verify(control)
+
+ compare(control.ApplicationWindow.window, applicationWindow)
+
+ control.parent = null
+ compare(control.ApplicationWindow.window, null)
+
+ control.destroy()
+ }
}