mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 07:39:45 -06:00
Remove EmuState
This commit is contained in:
@ -93,7 +93,6 @@ void GameList::MakeListView()
|
||||
m_list->setColumnHidden(GameListModel::COL_ID, !SConfig::GetInstance().m_showIDColumn);
|
||||
m_list->setColumnHidden(GameListModel::COL_COUNTRY, !SConfig::GetInstance().m_showRegionColumn);
|
||||
m_list->setColumnHidden(GameListModel::COL_SIZE, !SConfig::GetInstance().m_showSizeColumn);
|
||||
m_list->setColumnHidden(GameListModel::COL_RATING, !SConfig::GetInstance().m_showStateColumn);
|
||||
m_list->setColumnHidden(GameListModel::COL_FILE_NAME,
|
||||
!SConfig::GetInstance().m_showFileNameColumn);
|
||||
|
||||
@ -116,7 +115,6 @@ void GameList::MakeListView()
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_ID, QHeaderView::ResizeToContents);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_COUNTRY, QHeaderView::ResizeToContents);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_SIZE, QHeaderView::ResizeToContents);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_RATING, QHeaderView::ResizeToContents);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_FILE_NAME, QHeaderView::Interactive);
|
||||
|
||||
m_list->verticalHeader()->hide();
|
||||
@ -494,7 +492,6 @@ void GameList::OnColumnVisibilityToggled(const QString& row, bool visible)
|
||||
{tr("Platform"), GameListModel::COL_PLATFORM},
|
||||
{tr("Size"), GameListModel::COL_SIZE},
|
||||
{tr("Title"), GameListModel::COL_TITLE},
|
||||
{tr("State"), GameListModel::COL_RATING},
|
||||
{tr("File Name"), GameListModel::COL_FILE_NAME}};
|
||||
|
||||
m_list->setColumnHidden(rowname_to_col_index[row], !visible);
|
||||
|
@ -55,12 +55,6 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
|
||||
if (role == Qt::InitialSortOrderRole)
|
||||
return static_cast<int>(game.GetCountry());
|
||||
break;
|
||||
case COL_RATING:
|
||||
if (role == Qt::DecorationRole)
|
||||
return Resources::GetRating(game.GetEmuState());
|
||||
if (role == Qt::InitialSortOrderRole)
|
||||
return game.GetEmuState();
|
||||
break;
|
||||
case COL_BANNER:
|
||||
if (role == Qt::DecorationRole)
|
||||
{
|
||||
@ -128,8 +122,6 @@ QVariant GameListModel::headerData(int section, Qt::Orientation orientation, int
|
||||
return tr("File Name");
|
||||
case COL_SIZE:
|
||||
return tr("Size");
|
||||
case COL_RATING:
|
||||
return tr("State");
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
@ -48,7 +48,6 @@ public:
|
||||
COL_ID,
|
||||
COL_COUNTRY,
|
||||
COL_SIZE,
|
||||
COL_RATING,
|
||||
COL_FILE_NAME,
|
||||
NUM_COLS
|
||||
};
|
||||
|
Reference in New Issue
Block a user