QPalette: clarify documentation of resolve a bit

Explain where the colors come from for unset roles, and add a see-also
for isBrushSet.

Pick-to: 6.7 6.5
Change-Id: I35e58e6b0f3ff9e57d9df95879859dd10424dc92
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
bb10
Volker Hilsheimer 2024-05-23 10:04:30 +02:00
parent b151b0a949
commit f9cf13d23e
1 changed files with 4 additions and 1 deletions

View File

@ -958,7 +958,10 @@ static constexpr QPalette::ResolveMask allResolveMask()
/*!
Returns a new QPalette that is a union of this instance and \a other.
Color roles set in this instance take precedence.
Color roles set in this instance take precedence. Roles that are not
set in this instance will be taken from \a other.
\sa isBrushSet
*/
QPalette QPalette::resolve(const QPalette &other) const
{