Do not use White font on newer Windows versions

It isn't readable with the very light background.
Which Windows versions this should be used on is a guess right now.
So far Windows 7 or newer, but that may need adjustment.

Fixes #935

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-10-05 18:20:19 -03:00 committed by Dirk Hohndel
parent 437469e8ff
commit 44762c4252

View file

@ -558,7 +558,11 @@ print_part:
fontBigger.setPointSize(fontBigger.pointSize() + 1);
fontBigger.setBold(true);
QPen textPen = QPen(option.state & QStyle::State_Selected ? option.palette.brightText() : option.palette.text(), 1);
QPen textPen;
if(QSysInfo::windowsVersion() > QSysInfo::WV_VISTA)
textPen = QPen(option.palette.text(), 1);
else
textPen = QPen(option.state & QStyle::State_Selected ? option.palette.brightText() : option.palette.text(), 1);
initStyleOption(&opt, index);
opt.text = QString();