Windows11Style: sync PE_IndicatorHeaderArrow with PE_IndicatorBranch

Make the sort indicator arrow drawn in PE_IndicatorHeaderArrow a little
bit smaller (the same size as for PE_IndicatorBranch.

Change-Id: I34035a845b1a0f5ebdb1257d802360ce3df7e703
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Wladimir Leuschner <wladimir.leuschner@qt.io>
(cherry picked from commit 8945f7d6eb6c370ab5992d6250194f7b2c9df969)
This commit is contained in:
Christian Ehrlicher 2024-10-06 13:32:24 +02:00
parent e228cd14e4
commit ab1f7d56ab

View File

@ -825,8 +825,10 @@ void QWindows11Style::drawPrimitive(PrimitiveElement element, const QStyleOption
break;
case PE_IndicatorHeaderArrow:
if (const QStyleOptionHeader *header = qstyleoption_cast<const QStyleOptionHeader *>(option)) {
QFont f(assetFont);
f.setPointSize(6);
painter->setFont(f);
painter->setPen(header->palette.text().color());
painter->setFont(assetFont);
QRectF rect = option->rect;
if (header->sortIndicator & QStyleOptionHeader::SortUp) {
painter->drawText(rect,Qt::AlignCenter,"\uE96D");