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/qquickloader | |
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/qquickloader')
-rw-r--r-- | tests/auto/qtquick2/qquickloader/tst_qquickloader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qtquick2/qquickloader/tst_qquickloader.cpp b/tests/auto/qtquick2/qquickloader/tst_qquickloader.cpp index 1b8b120cd8..c9880751d6 100644 --- a/tests/auto/qtquick2/qquickloader/tst_qquickloader.cpp +++ b/tests/auto/qtquick2/qquickloader/tst_qquickloader.cpp @@ -762,7 +762,8 @@ void tst_QQuickLoader::deleteComponentCrash() QCOMPARE(loader->item()->objectName(), QLatin1String("blue")); QCOMPARE(loader->progress(), 1.0); QCOMPARE(loader->status(), QQuickLoader::Ready); - qApp->processEvents(QEventLoop::DeferredDeletion); + QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete); + QCoreApplication::processEvents(); QTRY_COMPARE(static_cast<QQuickItem*>(loader)->childItems().count(), 1); QVERIFY(loader->source() == testFileUrl("BlueRect.qml")); |