Mac: Fix the color of check marks in menus with stylesheet
Task-number: QTBUG-16989 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Morten Johan Sorvig <morten.sorvig@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com> (cherry picked from commit 22c7a2f69e833789e9b5613f809ea43561624482) Change-Id: I22c7a2f69e833789e9b5613f809ea43561624482
This commit is contained in:
parent
2b8c3ff0f0
commit
61fae7e551
@ -2851,10 +2851,14 @@ void QMacStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPai
|
||||
QVector<QLineF> a(2);
|
||||
a << QLineF(x1, y1, x2, y2);
|
||||
a << QLineF(x2, y2, x3, y3);
|
||||
if (opt->palette.currentColorGroup() == QPalette::Active)
|
||||
p->setPen(QPen(Qt::white, 3));
|
||||
else
|
||||
if (opt->palette.currentColorGroup() == QPalette::Active) {
|
||||
if (opt->state & State_On)
|
||||
p->setPen(QPen(opt->palette.highlightedText().color(), 3));
|
||||
else
|
||||
p->setPen(QPen(opt->palette.text().color(), 3));
|
||||
} else {
|
||||
p->setPen(QPen(QColor(100, 100, 100), 3));
|
||||
}
|
||||
p->save();
|
||||
p->setRenderHint(QPainter::Antialiasing);
|
||||
p->drawLines(a);
|
||||
|
Loading…
x
Reference in New Issue
Block a user