summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstylesheetstyle.cpp
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-09-07 01:00:48 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2018-09-07 01:00:48 +0200
commitf21330b7497db846deb0c16a8e70ac1fecb522ba (patch)
tree1a493eedb9c382462079d9c144970343f2dc6296 /src/widgets/styles/qstylesheetstyle.cpp
parente8dacba47a59944e4a5ca271c4698e5dfbdbe9d5 (diff)
parent35ebdeb83eb4057f5e50042747b13d0772051459 (diff)
Merge remote-tracking branch 'origin/5.12' into dev
Diffstat (limited to 'src/widgets/styles/qstylesheetstyle.cpp')
-rw-r--r--src/widgets/styles/qstylesheetstyle.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp
index bad69a7860..e34bae64ce 100644
--- a/src/widgets/styles/qstylesheetstyle.cpp
+++ b/src/widgets/styles/qstylesheetstyle.cpp
@@ -3870,17 +3870,10 @@ void QStyleSheetStyle::drawControl(ControlElement ce, const QStyleOption *opt, Q
if(hasStyleRule(w, PseudoElement_HeaderViewSection)) {
QRenderRule subRule = renderRule(w, opt, PseudoElement_HeaderViewSection);
if (!subRule.hasNativeBorder() || !subRule.baseStyleCanDraw()
- || subRule.hasBackground() || subRule.hasPalette() || subRule.hasFont) {
+ || subRule.hasBackground() || subRule.hasPalette() || subRule.hasFont || subRule.hasBorder()) {
ParentStyle::drawControl(ce, opt, p, w);
return;
}
- if (subRule.hasFont) {
- const QFont oldFont = p->font();
- p->setFont(subRule.font.resolve(p->font()));
- baseStyle()->drawControl(ce, opt, p, w);
- p->setFont(oldFont);
- return;
- }
}
break;
case CE_HeaderSection: