mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
Qt: fix compat list sort (#4003)
This commit is contained in:
parent
78f7020ce6
commit
90f825aa49
6 changed files with 28 additions and 9 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "settings_dialog.h"
|
||||
#include "table_item_delegate.h"
|
||||
#include "custom_table_widget_item.h"
|
||||
|
||||
#include "Emu/Memory/Memory.h"
|
||||
#include "Emu/System.h"
|
||||
|
@ -1093,9 +1094,10 @@ int game_list_frame::PopulateGameList()
|
|||
}
|
||||
|
||||
// Compatibility
|
||||
QTableWidgetItem* compat_item = new QTableWidgetItem;
|
||||
custom_table_widget_item* compat_item = new custom_table_widget_item;
|
||||
compat_item->setFlags(compat_item->flags() & ~Qt::ItemIsEditable);
|
||||
compat_item->setText(game.compat.text + (game.compat.date.isEmpty() ? "" : " (" + game.compat.date + ")"));
|
||||
compat_item->setData(Qt::UserRole, game.compat.index);
|
||||
compat_item->setToolTip(game.compat.tooltip);
|
||||
if (!game.compat.color.isEmpty())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue