diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-08-31 23:56:06 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-09-06 12:19:00 +0000 |
commit | 20be62da8c4dc547baaee2e949d1126500988a68 (patch) | |
tree | e81f8c86e305d298f4366ff28c5518ae1c2a14b6 /src | |
parent | fbd21e1024d503b4b8b5e38b629a3b17392dbb05 (diff) |
QHeaderView: remove dead code
The special handling when a font for a headerview is set became useless
after a4e6117c53c3984585b3bbb74c00d6d863c98fcd since it is now included
in branch four lines above.
Change-Id: I73bec48913ebca5f278128a124b58d1b6172e334
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/styles/qstylesheetstyle.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index 3e55bdaabc..5ba45d51d3 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -3874,13 +3874,6 @@ void QStyleSheetStyle::drawControl(ControlElement ce, const QStyleOption *opt, Q 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: |