mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-07 10:33:24 -08:00
[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.
This commit is contained in:
parent
268a32464c
commit
92b94c4ed7
1 changed files with 6 additions and 6 deletions
|
|
@ -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<qreal>(glyphIndex) * SLOT +
|
||||
(SLOT - side) / 2.0;
|
||||
const qreal x =
|
||||
cellX + 6 + static_cast<qreal>(glyphIndex) * SLOT + (SLOT - side) / 2.0;
|
||||
painter.drawPixmap(QPointF(x, rowTop + (SLOT - side) / 2.0), pixmap);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue