diff --git a/src/plugins/styles/mac/qmacstyle_mac.mm b/src/plugins/styles/mac/qmacstyle_mac.mm index 93d51171da9..4515b2b0ed9 100644 --- a/src/plugins/styles/mac/qmacstyle_mac.mm +++ b/src/plugins/styles/mac/qmacstyle_mac.mm @@ -3556,34 +3556,6 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter ir.right() - headerSectionSeparatorInset, ir.bottom())); } - break; - case CE_HeaderLabel: - if (const QStyleOptionHeader *header = qstyleoption_cast(opt)) { - p->save(); - QRect textr = header->rect; - if (!header->icon.isNull()) { - QIcon::Mode mode = QIcon::Disabled; - if (opt->state & State_Enabled) - mode = QIcon::Normal; - int iconExtent = proxy()->pixelMetric(PM_SmallIconSize); - QPixmap pixmap = header->icon.pixmap(QSize(iconExtent, iconExtent), p->device()->devicePixelRatio(), mode); - - QRect pixr = header->rect; - QSizeF size = pixmap.deviceIndependentSize(); - pixr.setY(header->rect.center().y() - (size.height() - 1) / 2); - proxy()->drawItemPixmap(p, pixr, Qt::AlignVCenter, pixmap); - textr.translate(size.width() + 2, 0); - } - QString text = header->text; - if (const QStyleOptionHeaderV2 *headerV2 = qstyleoption_cast(header)) { - if (headerV2->textElideMode != Qt::ElideNone) - text = header->fontMetrics.elidedText(text, headerV2->textElideMode, textr.width()); - } - - proxy()->drawItemText(p, textr, header->textAlignment | Qt::AlignVCenter, header->palette, - header->state.testFlag(State_Enabled), text, QPalette::ButtonText); - p->restore(); - } break; case CE_ToolButtonLabel: if (const QStyleOptionToolButton *tb = qstyleoption_cast(opt)) {