diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-08-09 14:37:17 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-08-09 13:17:06 +0000 |
commit | 6510046ee32ef69d7f250fd1d829063983f93fdd (patch) | |
tree | 94561205805d6dd1eaed6b5ed93c109bdd13a036 | |
parent | 889686505f9f13e69035b44d0c6dae86fd1bcf03 (diff) |
Fix build warning in tst_drawingmodes
Change-Id: Ie6cee9c4cf549eb582f86436908d6f3481026a72
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | tests/auto/quick/drawingmodes/tst_drawingmodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/drawingmodes/tst_drawingmodes.cpp b/tests/auto/quick/drawingmodes/tst_drawingmodes.cpp index fe794cf952..afc66948b0 100644 --- a/tests/auto/quick/drawingmodes/tst_drawingmodes.cpp +++ b/tests/auto/quick/drawingmodes/tst_drawingmodes.cpp @@ -51,8 +51,8 @@ public: view.setResizeMode(QQuickView::SizeViewToRootObject); view.setSource(testFileUrl(fileName)); view.setVisible(true); - QTest::qWaitForWindowExposed(&view); - return view.grabWindow(); + bool exposed = QTest::qWaitForWindowExposed(&view); + return exposed ? view.grabWindow() : QImage(); } //It is important for platforms that only are able to show fullscreen windows |