qt5base-lts/tests/manual/lance
Eirik Aavitsland f46db29d8c Painting: fix overriding and combining different clip types
In a recent improvement (6de36918c0) the
last set clip region or path was stored in separate variables, in
order to be set again if the aliasing mode changed. That solution was
too simplistic, as it would break down as soon as more than one clip
area was set, with the latter either replacing or intersecting the
first. It was also unnecessary to introduce new storing of clip areas
and transforms, as those are already recorded in the clipInfo stack in
the painter state. This patch hence reverts much of that implementation.

However the basic idea of setting the clip area again after AA change
is good, so that part is kept, implementated instead by calling a
pre-existing function to replay the clipInfo stack.

One of the baseline test cases is extended to excercise the
combination of clip areas. As a driveby, support for setClipRectF is
added to the painting baseline test scripts, and the build of the
manual lance tool is fixed.

Fixes: QTBUG-101474
Pick-to: 6.3 6.2
Change-Id: Ide8b70d8cbf138deb06cbb84f69e62f7405886e6
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2022-03-15 12:45:46 +01:00
..
CMakeLists.txt Baseline: Move the paintcommands code into the shared directory 2022-01-20 22:56:11 +01:00
enum.png Cleaning up the QPainter/arthur testing stuff 2011-06-29 15:10:14 +02:00
icons.qrc Cleaning up the QPainter/arthur testing stuff 2011-06-29 15:10:14 +02:00
interactivewidget.cpp Fix compilation of lance tool 2020-06-05 14:26:41 +02:00
interactivewidget.h lance tool: fix build for Qt 6 2021-03-22 13:59:40 +01:00
lance.pro Painting: fix overriding and combining different clip types 2022-03-15 12:45:46 +01:00
main.cpp lance tool: fix build for Qt 6 2021-03-22 13:59:40 +01:00
README Cleaning up the QPainter/arthur testing stuff 2011-06-29 15:10:14 +02:00
tools.png Cleaning up the QPainter/arthur testing stuff 2011-06-29 15:10:14 +02:00
widgets.h lance tool: fix build for Qt 6 2021-03-22 13:59:40 +01:00

The "lance" tool can be used to edit and run QPainter script (.qps)
files. They are used in the "lancelot" qpainter regression autotest.
A collection of scripts can be found in the directory
tests/auto/lancelot/scripts

See lance -help for options.