Use QPalette::HighlightedText instead QPalette::Text for track slider popup so slider's text color really contrast with slider's background color.

Fixes issue 1757.
This commit is contained in:
Arnaud Bienner 2012-03-20 23:00:37 +01:00
parent a09165c392
commit 29cfe20160
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ void TrackSliderPopup::UpdatePixmap() {
p.drawPixmap(total_rect.topLeft(), background_cache_);
// Text
p.setPen(palette().color(QPalette::Text));
p.setPen(palette().color(QPalette::HighlightedText));
p.setFont(font_);
p.drawText(text_rect1, Qt::AlignHCenter, text_);