summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp')
-rw-r--r--tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
index e031688c..99b30af9 100644
--- a/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
@@ -80,15 +80,16 @@ void tst_proxy::construct()
QImage image(QSize(10, 10), QImage::Format_ARGB32);
image.fill(0);
proxy = new QHeightMapSurfaceDataProxy(image);
+ QSignalSpy spy(proxy, SIGNAL(columnCountChanged(int)));
QVERIFY(proxy);
- QCoreApplication::processEvents();
+ spy.wait(1000);
QCOMPARE(proxy->columnCount(), 10);
QCOMPARE(proxy->rowCount(), 10);
delete proxy;
proxy = new QHeightMapSurfaceDataProxy(":/customtexture.jpg");
QVERIFY(proxy);
- QCoreApplication::processEvents();
+ spy.wait(1000);
QCOMPARE(proxy->columnCount(), 24);
QCOMPARE(proxy->rowCount(), 24);
delete proxy;