summaryrefslogtreecommitdiffstats
path: root/tests/baseline/shared/paintcommands.h
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2022-05-20 16:47:42 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2022-05-31 21:20:41 +0200
commit5adaa8d868b6718e07035152351b14449cea95d3 (patch)
tree3b08ac3e7db2c9c0850c8026dcad0a53a4dc33bf /tests/baseline/shared/paintcommands.h
parent5e48a51608485cbc87b68498fd54ab36f001d584 (diff)
Add painter render hint for brush pattern transformation
[ChangeLog][QtGui][QPainter] In Qt 5, the predefined brush patterns would always be transformed along with the object being painted. In Qt 6.0 onwards, they would or would not, depending on the SmoothPixmapTransformation render hint. Instead of this somewhat surprising behavior, make the default be untransformed (i.e. cosmetic), which makes sense when it comes to dpr scaling. For the cases where one wants scaling, a new render hint is introduced to enable that: NonCosmeticPatternBrushes. Change-Id: I2208c7a28af9056d7ab97a529b66bf2d502c3c4f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/baseline/shared/paintcommands.h')
-rw-r--r--tests/baseline/shared/paintcommands.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/baseline/shared/paintcommands.h b/tests/baseline/shared/paintcommands.h
index 75f48d3eb7..0d8044fc47 100644
--- a/tests/baseline/shared/paintcommands.h
+++ b/tests/baseline/shared/paintcommands.h
@@ -280,6 +280,7 @@ private:
static const char *compositionModeTable[];
static const char *imageFormatTable[];
static const char *sizeModeTable[];
+ static const char *renderHintTable[];
static int translateEnum(const char *table[], const QString &pattern, int limit);
// utility