We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 013cce5 commit 475b69bCopy full SHA for 475b69b
src/duckstation-qt/gamelistwidget.cpp
@@ -1413,6 +1413,8 @@ class GameListAchievementsStyleDelegate final : public QStyledItemDelegate
1413
const QColor& text_color =
1414
palette.color((option.state & QStyle::State_Selected) ? QPalette::HighlightedText : QPalette::Text);
1415
1416
+ painter->save();
1417
+
1418
if (num_achievements > 0)
1419
{
1420
const QFontMetrics fm(painter->fontMetrics());
@@ -1446,6 +1448,8 @@ class GameListAchievementsStyleDelegate final : public QStyledItemDelegate
1446
1448
painter->setPen(text_color);
1447
1449
painter->drawText(r, Qt::AlignVCenter, QStringLiteral("N/A"));
1450
}
1451
1452
+ painter->restore();
1453
1454
1455
private:
0 commit comments