Fixed selected menu item (& Co.) text color

On Mac, highlighted text remains the same color as normal text. That's
not the case for menu and combobox items.

Change-Id: I3efe2547413f77921524b833b4b10cf2d533e110
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
bb10
Gabriel de Dietrich 2012-09-24 18:18:41 +02:00 committed by The Qt Project
parent 65b39b3cdc
commit fc0ad0aca2
1 changed files with 1 additions and 1 deletions

View File

@ -4218,7 +4218,7 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter
if (!enabled)
p->setPen(mi->palette.text().color());
else if (active)
p->setPen(mi->palette.highlightedText().color());
p->setPen(QColor(Qt::white)); // QPalette's API is incomplete for this case
else
p->setPen(mi->palette.buttonText().color());