From 44762c425233cb13d86d64360dbda54e975a7372 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 5 Oct 2015 18:20:19 -0300 Subject: Do not use White font on newer Windows versions It isn't readable with the very light background. Which Windows versions this should be used on is a guess right now. So far Windows 7 or newer, but that may need adjustment. Fixes #935 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 5f493128b..6c0f860af 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -558,7 +558,11 @@ print_part: fontBigger.setPointSize(fontBigger.pointSize() + 1); fontBigger.setBold(true); - QPen textPen = QPen(option.state & QStyle::State_Selected ? option.palette.brightText() : option.palette.text(), 1); + QPen textPen; + if(QSysInfo::windowsVersion() > QSysInfo::WV_VISTA) + textPen = QPen(option.palette.text(), 1); + else + textPen = QPen(option.state & QStyle::State_Selected ? option.palette.brightText() : option.palette.text(), 1); initStyleOption(&opt, index); opt.text = QString(); -- cgit v1.2.3-70-g09d2