diff options
| author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2025-09-29 13:02:16 +0300 |
|---|---|---|
| committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2025-10-15 05:19:27 +0000 |
| commit | e1e68ec4505869a95bd28047b4071e585e1ad23f (patch) | |
| tree | 058e9269241041f10cab6ed28607358a6ed229f7 /src/quicktestutils/qml/testhttpserver.cpp | |
| parent | 577682cff80796d1b3033fae3d04ea3a8dfe0e0b (diff) | |
MaterialStyle: Fix reset behavior for foreground and background
Resetting foreground and background values did not propagate to
children when the earlier value matched theme default.
Stop pre-clearing m_hasX/m_customX in reset. Clearing these variables
prevents propagating the values to children due to early exit
conditions in the inherit functions.
Clear only m_explicitX and call inherit with the parent's values.
m_hasX/m_customX values are then cleared in the inherit function,
if changed. This guarantees propagation to children even when the
color is unchanged.
Pick-to: 6.10 6.8
Change-Id: Ie4f7276d43afbfaf5b4d10ccf658f27000d640d9
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktestutils/qml/testhttpserver.cpp')
0 files changed, 0 insertions, 0 deletions
