summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Brasser <mbrasser@ford.com>2020-10-21 16:38:42 -0500
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-10-22 14:49:38 +0000
commit4fed1c60dbed61c78ac80d608b840a6043cf7303 (patch)
treefbffca0f2a548b0e336b77f790cfeb4d20f20f02 /tests
parent16a34ffb5598837d98d871717c81d07e8e9c6211 (diff)
Expand QPaintedTextureImage documentation
Also make use of the newly documented pattern in the manual test. Change-Id: Idefe271eea345848af3817e08ac5b45946843dad Reviewed-by: Paul Lemire <paul.lemire@kdab.com> (cherry picked from commit 3d2d67b571b0f6ed3df1c0d3eeed1e89097bef57) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/paintedtexture-cpp/scene.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/paintedtexture-cpp/scene.cpp b/tests/manual/paintedtexture-cpp/scene.cpp
index 19bcdbd22..568558358 100644
--- a/tests/manual/paintedtexture-cpp/scene.cpp
+++ b/tests/manual/paintedtexture-cpp/scene.cpp
@@ -75,6 +75,8 @@ protected:
int w = painter->device()->width();
int h = painter->device()->height();
+ painter->setViewport(0, h, w, -h);
+
// clear to white
painter->fillRect(0, 0, w, h, QColor(255, 255, 255));