From e5fa424a67b351a7c08ab4c9b2396b612635bef4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 6 Oct 2015 00:23:22 +0100 Subject: Only check Windows version when building on Windows Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/modeldelegates.cpp') diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 6c0f860af..4f4fc7e79 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -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); -- cgit v1.2.3-70-g09d2