summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2018-11-06 12:01:33 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2018-11-07 06:54:00 +0000
commitedacfd2f0b6f95430b62296853c3ae5b3405b406 (patch)
treea134cbe197c5be7bea365c73ad45f5c091c9f846
parent97600d2c2885e667ced0926815b5a12a7f25285c (diff)
Fix QTableView/Widget on macOS
For this we can use whatever the current NSColor.gridColor contains. While this is mostly needed by the 'Dark' appearance, it also affects the 'Light' theme, since the color QCommonStyle returns is different. Let's use whatever Apple suggests. Task-number: QTBUG-71048 Change-Id: I084414bad546755e9e67792484fe4601826ed0fa Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r--src/plugins/styles/mac/qmacstyle_mac.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/styles/mac/qmacstyle_mac.mm b/src/plugins/styles/mac/qmacstyle_mac.mm
index 94d048ca7e..0204bd6104 100644
--- a/src/plugins/styles/mac/qmacstyle_mac.mm
+++ b/src/plugins/styles/mac/qmacstyle_mac.mm
@@ -2789,6 +2789,9 @@ int QMacStyle::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget *w
case SH_SpinBox_ButtonsInsideFrame:
ret = false;
break;
+ case SH_Table_GridLineColor:
+ ret = int(qt_mac_toQColor(NSColor.gridColor).rgb());
+ break;
default:
ret = QCommonStyle::styleHint(sh, opt, w, hret);
break;