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:
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.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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue