mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
game_list_p: Amend typo in GameListItemCompat's constructor parameter
Adds a missing 'i' character that was missing in compatibility.
This commit is contained in:
parent
230edc8c7c
commit
52ec85be12
1 changed files with 4 additions and 4 deletions
|
@ -204,7 +204,7 @@ class GameListItemCompat : public GameListItem {
|
||||||
public:
|
public:
|
||||||
static const int CompatNumberRole = SortRole;
|
static const int CompatNumberRole = SortRole;
|
||||||
GameListItemCompat() = default;
|
GameListItemCompat() = default;
|
||||||
explicit GameListItemCompat(const QString& compatiblity) {
|
explicit GameListItemCompat(const QString& compatibility) {
|
||||||
setData(type(), TypeRole);
|
setData(type(), TypeRole);
|
||||||
|
|
||||||
struct CompatStatus {
|
struct CompatStatus {
|
||||||
|
@ -223,13 +223,13 @@ public:
|
||||||
{"99", {"#000000", QT_TR_NOOP("Not Tested"), QT_TR_NOOP("The game has not yet been tested.")}}};
|
{"99", {"#000000", QT_TR_NOOP("Not Tested"), QT_TR_NOOP("The game has not yet been tested.")}}};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
auto iterator = status_data.find(compatiblity);
|
auto iterator = status_data.find(compatibility);
|
||||||
if (iterator == status_data.end()) {
|
if (iterator == status_data.end()) {
|
||||||
LOG_WARNING(Frontend, "Invalid compatibility number {}", compatiblity.toStdString());
|
LOG_WARNING(Frontend, "Invalid compatibility number {}", compatibility.toStdString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
CompatStatus status = iterator->second;
|
CompatStatus status = iterator->second;
|
||||||
setData(compatiblity, CompatNumberRole);
|
setData(compatibility, CompatNumberRole);
|
||||||
setText(QObject::tr(status.text));
|
setText(QObject::tr(status.text));
|
||||||
setToolTip(QObject::tr(status.tooltip));
|
setToolTip(QObject::tr(status.tooltip));
|
||||||
setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole);
|
setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole);
|
||||||
|
|
Loading…
Reference in a new issue