From 92b94c4ed7db273cd0b4a5562f2aa80d012aa099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= <44814898+BruebachL@users.noreply.github.com> Date: Sat, 7 Nov 2026 11:04:25 +0100 Subject: [PATCH] [Icons] Apply the CI clang-format output to the treatment preview clang-format 18 wraps the family label and the glyph x offset differently from the local clang-format 23. The preview test takes the CI output so the bottom of the stack passes the style job on its own. --- .../theme_migration/icon_treatment_preview_test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/theme_migration/icon_treatment_preview_test.cpp b/tests/theme_migration/icon_treatment_preview_test.cpp index 166e27220..212987ec0 100644 --- a/tests/theme_migration/icon_treatment_preview_test.cpp +++ b/tests/theme_migration/icon_treatment_preview_test.cpp @@ -197,10 +197,10 @@ TEST(IconTreatmentPreview, WritesOneSheetPerShippedTheme) painter.setPen(text); painter.setFont(QFont(QStringLiteral("Sans"), 8, QFont::DemiBold)); - painter.drawText(QPointF(contentLeft, y + 14), - QStringLiteral("%1%2").arg( - QString::fromLatin1(family.name), - isDisabled ? QStringLiteral(" / disabled") : QString())); + painter.drawText( + QPointF(contentLeft, y + 14), + QStringLiteral("%1%2").arg(QString::fromLatin1(family.name), + isDisabled ? QStringLiteral(" / disabled") : QString())); painter.setFont(QFont(QStringLiteral("Mono"), 7)); painter.drawText(QPointF(contentLeft, y + 28), ink.name(QColor::HexRgb)); @@ -223,8 +223,8 @@ TEST(IconTreatmentPreview, WritesOneSheetPerShippedTheme) } return ThemeIconBadge::renderBadge(svg, ink, pixelSize); }); - const qreal x = cellX + 6 + static_cast(glyphIndex) * SLOT + - (SLOT - side) / 2.0; + const qreal x = + cellX + 6 + static_cast(glyphIndex) * SLOT + (SLOT - side) / 2.0; painter.drawPixmap(QPointF(x, rowTop + (SLOT - side) / 2.0), pixmap); } }