ui: Fix Game Compatibility list translations

Reported by GillianMC on Discord. Looks to be a small quirk in the QT API.

setText(QObject::tr(status.text));
bringing up QObject breaks the link with the GameListItemCompat
This commit is contained in:
Kyle K 2022-04-13 13:29:59 -07:00 committed by FearlessTobi
parent 47c4f31c8d
commit ed0e9e9593
2 changed files with 3 additions and 3 deletions

View File

@ -264,8 +264,8 @@ public:
}
const CompatStatus& status = iterator->second;
setData(compatibility, CompatNumberRole);
setText(QObject::tr(status.text));
setToolTip(QObject::tr(status.tooltip));
setText(tr(status.text));
setToolTip(tr(status.tooltip));
setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole);
}