diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-06 00:23:22 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-06 00:23:22 +0100 |
commit | e5fa424a67b351a7c08ab4c9b2396b612635bef4 (patch) | |
tree | de22cd8e7a0059958184c3b9dfd66f5ecd59519e /qt-ui/modeldelegates.cpp | |
parent | f07953ca00d6c2f709701eac85b8503d750e732c (diff) | |
download | subsurface-e5fa424a67b351a7c08ab4c9b2396b612635bef4.tar.gz |
Only check Windows version when building on Windows
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 2 |
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); |