diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-21 15:40:10 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-21 19:54:32 +0000 |
commit | 618f34889be51f531b6226e6362f40604967b486 (patch) | |
tree | 50cc263f2e9804a43aa5184b7a1dce67073d7753 /tests/auto/controls/data/tst_popup.qml | |
parent | 40aa7c39671400d96cf5f87fa737264912585ca0 (diff) |
Fix QQuickPopup::setVisible()
Make sure to store the visibility flag even if the component is not yet
completed. This way QQuickPopup::componentComplete() will run the enter
transition as it was supposed.
Change-Id: I1e4536e2fdb575b80174ae445626af43bdc45ed6
Task-number: QTBUG-51989
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.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_popup.qml b/tests/auto/controls/data/tst_popup.qml index 0a51c138..4eba8dca 100644 --- a/tests/auto/controls/data/tst_popup.qml +++ b/tests/auto/controls/data/tst_popup.qml @@ -796,6 +796,16 @@ TestCase { control.destroy() } + // QTBUG-51989 + function test_visible() { + var control = popupTemplate.createObject(testCase, {visible: true}) + verify(control) + + tryCompare(control, "visible", true) + + control.destroy() + } + Component { id: overlayTest ApplicationWindow { |