qt5base-lts/tests/auto
JiDe Zhang 1d961491d8 Always update QPalette resolve mask, regardless of QBrush change
56bd1b76d2 changed the update
resolve mask behavior in QPalette to avoid detaching brush data
when modifying the resolve mask if the brush value is not changed.

But this behavior broke compatibility, it introduced unknown risks, and
we cannot ensure that other code in Qt does not depend on the old
behavior.

We both need to ensure that we don't detach when the value is not
changed, and ensure that the resolveMask is always updated regardless
of whether the value changes, so we need to split them up and
independently share the brush data.

QFont will update its corresponding resolveMask even if the value has
not changed, so it is better to correct this behavior so that QPalette
and QFont are consistent.

[ChangeLog][QtGui][QPalette] Always update resolve mask in
QPalette::setBrush, even if the value of brush has not changed.

Fixes: QTBUG-98762
Pick-to: 6.4 6.3 6.2
Change-Id: Ib845361b30f21c3d78c16ced923c1678b12e05ac
Reviewed-by: JiDe Zhang <zhangjide@uniontech.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-07-08 17:09:04 +00:00
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake Fix memory leaks 2022-06-15 23:58:16 +02:00
concurrent QtConcurrent: prevent conversion of ReduceOption to initial value 2022-05-20 17:11:15 +02:00
corelib Add support for scoped JNI callbacks 2022-07-07 13:35:08 +03:00
dbus Fix QDBusInterface crashing with empty path on construction 2022-06-27 14:02:47 +02:00
gui Always update QPalette resolve mask, regardless of QBrush change 2022-07-08 17:09:04 +00:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network tst_QSslKey: prepare for the migration to OpenSSL v3 2022-07-05 17:36:03 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other unblacklist passing tests 2022 2022-06-23 01:36:01 +02:00
printsupport Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
testlib qtestlib: exit with error if a test is invoked with unknown data tag 2022-06-28 18:06:33 +02:00
tools moc: Allow writing properties through bindables 2022-07-08 09:38:27 +02:00
wasm Port promise tests to qtwasmtestlib 2022-07-06 17:56:57 +02:00
widgets QWidget: use WA_InputMethodEnabled when ImEnabled is not implemented 2022-07-08 09:41:29 +02:00
xml Add QDom internalSubset implementation 2022-06-23 02:18:39 +08:00
CMakeLists.txt Only configure one test for wasm 2022-05-12 18:55:04 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00