Only check Windows version when building on Windows

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-10-06 00:23:22 +01:00
parent f07953ca00
commit e5fa424a67

View file

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