summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtabbar.cpp
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@qt.io>2017-06-23 10:47:23 -0700
committerBłażej Szczygieł <spaz16@wp.pl>2017-06-28 10:34:35 +0000
commitd138a239d27b3f2d3b654b4768f8000bb2a555a1 (patch)
tree2f18791355e23a9e38a3f39fe13b6257245b2bff /src/widgets/widgets/qtabbar.cpp
parent9c9382a85f53756c3c702ef7a999720ae40be5b9 (diff)
Fix current tab text color on Mac when a proxy style is installed
We move the code forcing white text on the current tab to QMacStyle. This removes the small encapsulation violation even though we need to check for the tab text color in the style and modify the palette. Amends 2fbc1432025dd478cf9e940e3c2a1952b218c6dc. Change-Id: If31dc11ae389ee5315e84ab03cf1c08540d81640 Reviewed-by: Błażej Szczygieł <spaz16@wp.pl> Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/widgets/widgets/qtabbar.cpp')
-rw-r--r--src/widgets/widgets/qtabbar.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/widgets/widgets/qtabbar.cpp b/src/widgets/widgets/qtabbar.cpp
index 060d1f9a03..4cd9522bfb 100644
--- a/src/widgets/widgets/qtabbar.cpp
+++ b/src/widgets/widgets/qtabbar.cpp
@@ -176,10 +176,6 @@ void QTabBarPrivate::initBasicStyleOption(QStyleOptionTab *option, int tabIndex)
if (tab.textColor.isValid())
option->palette.setColor(q->foregroundRole(), tab.textColor);
- else if (q->style()->inherits("QMacStyle")
- && isCurrent && !documentMode && q->isActiveWindow()) {
- option->palette.setColor(QPalette::WindowText, Qt::white);
- }
option->icon = tab.icon;
option->iconSize = q->iconSize(); // Will get the default value then.