f46db29d8c
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>
18 lines
502 B
Prolog
18 lines
502 B
Prolog
LANCELOT_DIR = $$[QT_HOST_PREFIX]/tests/baseline/shared
|
|
CONFIG += cmdline moc
|
|
TEMPLATE = app
|
|
INCLUDEPATH += . $$LANCELOT_DIR
|
|
QT += core-private gui-private widgets printsupport openglwidgets
|
|
|
|
HEADERS += widgets.h \
|
|
interactivewidget.h \
|
|
$$LANCELOT_DIR/paintcommands.h
|
|
SOURCES += interactivewidget.cpp \
|
|
main.cpp \
|
|
$$LANCELOT_DIR/paintcommands.cpp
|
|
RESOURCES += icons.qrc \
|
|
$$LANCELOT_DIR/../painting/images.qrc
|
|
|
|
qtHaveModule(opengl): QT += opengl
|
|
|