1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

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.setPointSize(fontBigger.pointSize() + 1);
fontBigger.setBold(true); fontBigger.setBold(true);
QPen textPen; QPen textPen;
#ifdef WIN32
if(QSysInfo::windowsVersion() > QSysInfo::WV_VISTA) if(QSysInfo::windowsVersion() > QSysInfo::WV_VISTA)
textPen = QPen(option.palette.text(), 1); textPen = QPen(option.palette.text(), 1);
else else
#endif
textPen = QPen(option.state & QStyle::State_Selected ? option.palette.brightText() : option.palette.text(), 1); textPen = QPen(option.state & QStyle::State_Selected ? option.palette.brightText() : option.palette.text(), 1);
initStyleOption(&opt, index); initStyleOption(&opt, index);