diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2012-01-24 10:30:57 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-24 03:31:14 +0100 |
commit | f4eeae2a4f3e72d2b82758e534c27fb6482b142f (patch) | |
tree | 1980289a5e8797e613735f3a2798e225b5abf992 /tests/auto/qtquick2/qquickimage | |
parent | cbcc886564805fc0995d20962c82981b8b05c0e3 (diff) |
Fixed compile.
QEventLoop::DeferredDeletion was deprecated long ago, and finally has
been removed. Replace it with
QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete)
Change-Id: Ic03f26a57efeb35aefab67a913f56001303aa3e4
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/qtquick2/qquickimage')
-rw-r--r-- | tests/auto/qtquick2/qquickimage/tst_qquickimage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qtquick2/qquickimage/tst_qquickimage.cpp b/tests/auto/qtquick2/qquickimage/tst_qquickimage.cpp index 5c1487e7f1..c54f5e2b24 100644 --- a/tests/auto/qtquick2/qquickimage/tst_qquickimage.cpp +++ b/tests/auto/qtquick2/qquickimage/tst_qquickimage.cpp @@ -693,7 +693,8 @@ void tst_qquickimage::imageCrash_QTBUG_22125() // shouldn't crash when deleting cancelled QDeclarativePixmapReplys. QTest::qWait(520); // Delay mode delays for 500 ms. - qApp->processEvents(QEventLoop::DeferredDeletion); + QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete); + QCoreApplication::processEvents(); } /* |