Fix QMacStyle QPalette warning
The code was still using QPalette::background. It's now using window. Change-Id: I9a47018d559d638ff69b1e4b2d7e2335e04a2a3a Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
730cbad882
commit
de3716f0ba
|
|
@ -4214,7 +4214,7 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter
|
|||
case CE_MenuBarEmptyArea:
|
||||
if (const QStyleOptionMenuItem *mi = qstyleoption_cast<const QStyleOptionMenuItem *>(opt)) {
|
||||
const bool selected = (opt->state & State_Selected) && (opt->state & State_Enabled) && (opt->state & State_Sunken);
|
||||
const QBrush bg = selected ? mi->palette.highlight() : mi->palette.background();
|
||||
const QBrush bg = selected ? mi->palette.highlight() : mi->palette.window();
|
||||
p->fillRect(mi->rect, bg);
|
||||
|
||||
if (ce != CE_MenuBarItem)
|
||||
|
|
|
|||
Loading…
Reference in New Issue