summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2012-09-24 18:18:41 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-27 15:56:40 +0200
commitfc0ad0aca28095991ab0f1a40084f0bd15eb5263 (patch)
tree8d2d69dae298be90d9c965722c88e8b2620f53ed /src
parent65b39b3cdcdfe175d80ccf9428168ed51be77fd8 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/styles/qmacstyle_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm
index cd46bd1ca8..ff96db624d 100644
--- a/src/widgets/styles/qmacstyle_mac.mm
+++ b/src/widgets/styles/qmacstyle_mac.mm
@@ -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());