diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-05-02 14:05:29 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-02 14:16:46 +0000 |
commit | 6d0378ad9b91db04ca725b98d941d32871b19d82 (patch) | |
tree | 692e4b97279e763abd6acf534d069c29ae55abcc /tests | |
parent | 4ccd7d16443ab9a01c7a7b0c9218a19f17895c54 (diff) |
tst_qquicktext::hAlignImplicitWidth: wait for window exposed, not just active
We're grabbing the window just after, so we need to wait for it to
render something first.
Change-Id: I11382f0a6344014e22fcf7473a2eed10c4301b2d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quick/qquicktext/tst_qquicktext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicktext/tst_qquicktext.cpp b/tests/auto/quick/qquicktext/tst_qquicktext.cpp index 5f346a6e0a..6b861af8a6 100644 --- a/tests/auto/quick/qquicktext/tst_qquicktext.cpp +++ b/tests/auto/quick/qquicktext/tst_qquicktext.cpp @@ -1004,7 +1004,7 @@ void tst_qquicktext::hAlignImplicitWidth() view.setFlags(view.flags() | Qt::WindowStaysOnTopHint); // Prevent being obscured by other windows. view.show(); view.requestActivate(); - QVERIFY(QTest::qWaitForWindowActive(&view)); + QVERIFY(QTest::qWaitForWindowExposed(&view)); QQuickText *text = view.rootObject()->findChild<QQuickText*>("textItem"); QVERIFY(text != nullptr); |