diff options
author | Michael Brasser <mbrasser@ford.com> | 2020-10-21 16:38:42 -0500 |
---|---|---|
committer | Michael Brasser <mbrasser@ford.com> | 2020-10-22 08:29:56 -0500 |
commit | 3d2d67b571b0f6ed3df1c0d3eeed1e89097bef57 (patch) | |
tree | ca4e3732258222980ebf08b8a168ff4072e2cbe7 /tests/manual/paintedtexture-cpp/scene.cpp | |
parent | 41e457cbee41af546f964885e289dab8c9ac99de (diff) |
Expand QPaintedTextureImage documentation
Also make use of the newly documented pattern in the manual test.
Pick-to: 5.15
Change-Id: Idefe271eea345848af3817e08ac5b45946843dad
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/manual/paintedtexture-cpp/scene.cpp')
-rw-r--r-- | tests/manual/paintedtexture-cpp/scene.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/paintedtexture-cpp/scene.cpp b/tests/manual/paintedtexture-cpp/scene.cpp index 5931d003c..d29286815 100644 --- a/tests/manual/paintedtexture-cpp/scene.cpp +++ b/tests/manual/paintedtexture-cpp/scene.cpp @@ -76,6 +76,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)); |