mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Only check Windows version when building on Windows
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f07953ca00
commit
e5fa424a67
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue