summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-06 00:23:22 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-06 00:23:22 +0100
commite5fa424a67b351a7c08ab4c9b2396b612635bef4 (patch)
treede22cd8e7a0059958184c3b9dfd66f5ecd59519e
parentf07953ca00d6c2f709701eac85b8503d750e732c (diff)
downloadsubsurface-e5fa424a67b351a7c08ab4c9b2396b612635bef4.tar.gz
Only check Windows version when building on Windows
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/modeldelegates.cpp2
1 files changed, 2 insertions, 0 deletions
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);