From ab1f7d56ab1700011b864ddbacb98402e94b337a Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sun, 6 Oct 2024 13:32:24 +0200 Subject: [PATCH] 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 Reviewed-by: Wladimir Leuschner (cherry picked from commit 8945f7d6eb6c370ab5992d6250194f7b2c9df969) --- src/plugins/styles/modernwindows/qwindows11style.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/styles/modernwindows/qwindows11style.cpp b/src/plugins/styles/modernwindows/qwindows11style.cpp index 3863ad1e1d9..783d25e1b2b 100644 --- a/src/plugins/styles/modernwindows/qwindows11style.cpp +++ b/src/plugins/styles/modernwindows/qwindows11style.cpp @@ -825,8 +825,10 @@ void QWindows11Style::drawPrimitive(PrimitiveElement element, const QStyleOption break; case PE_IndicatorHeaderArrow: if (const QStyleOptionHeader *header = qstyleoption_cast(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");