mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-30 05:24:13 +01:00
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:
parent
47c4f31c8d
commit
ed0e9e9593
@ -86,7 +86,7 @@
|
|||||||
<item row="4" column="0">
|
<item row="4" column="0">
|
||||||
<widget class="QRadioButton" name="radioButton_Great">
|
<widget class="QRadioButton" name="radioButton_Great">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Great </string>
|
<string>Great</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -264,8 +264,8 @@ public:
|
|||||||
}
|
}
|
||||||
const CompatStatus& status = iterator->second;
|
const CompatStatus& status = iterator->second;
|
||||||
setData(compatibility, CompatNumberRole);
|
setData(compatibility, CompatNumberRole);
|
||||||
setText(QObject::tr(status.text));
|
setText(tr(status.text));
|
||||||
setToolTip(QObject::tr(status.tooltip));
|
setToolTip(tr(status.tooltip));
|
||||||
setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole);
|
setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user