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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
index 20ed1aeb..88faec4b 100644
--- a/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
+++ b/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp
@@ -66,7 +66,9 @@ void tst_proxy::construct()
QVERIFY(proxy);
delete proxy;
- proxy = new QHeightMapSurfaceDataProxy(QImage(QSize(10, 10), QImage::Format_ARGB32));
+ QImage image(QSize(10, 10), QImage::Format_ARGB32);
+ image.fill(0);
+ proxy = new QHeightMapSurfaceDataProxy(image);
QVERIFY(proxy);
QCoreApplication::processEvents();
QCOMPARE(proxy->columnCount(), 10);