|
|
|
|
@ -152,11 +152,19 @@ void GameListModel::setShowLocalizedTitles(bool enabled)
|
|
|
|
|
{
|
|
|
|
|
m_show_localized_titles = enabled;
|
|
|
|
|
|
|
|
|
|
emit dataChanged(index(0, Column_Title), index(rowCount() - 1, Column_Title), {Qt::DisplayRole});
|
|
|
|
|
emit dataChanged(index(0, Column_Title), index(rowCount() - 1, Column_Title), {Qt::DisplayRole, Qt::ToolTipRole});
|
|
|
|
|
if (m_show_titles_for_covers)
|
|
|
|
|
emit dataChanged(index(0, Column_Cover), index(rowCount() - 1, Column_Cover), {Qt::DisplayRole});
|
|
|
|
|
// emit cover changed as well since the autogenerated covers will differ
|
|
|
|
|
refreshCovers();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GameListModel::setShowCoverTitles(bool enabled)
|
|
|
|
|
{
|
|
|
|
|
m_show_titles_for_covers = enabled;
|
|
|
|
|
emit dataChanged(index(0, Column_Cover), index(rowCount() - 1, Column_Cover), {Qt::DisplayRole});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GameListModel::setShowGameIcons(bool enabled)
|
|
|
|
|
{
|
|
|
|
|
m_show_game_icons = enabled;
|
|
|
|
|
@ -244,7 +252,7 @@ void GameListModel::updateCoverScale()
|
|
|
|
|
void GameListModel::refreshCovers()
|
|
|
|
|
{
|
|
|
|
|
m_cover_pixmap_cache.Clear();
|
|
|
|
|
emit dataChanged(index(0, Column_Cover), index(rowCount() - 1, Column_Cover), {Qt::DisplayRole});
|
|
|
|
|
emit dataChanged(index(0, Column_Cover), index(rowCount() - 1, Column_Cover), {Qt::DecorationRole});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GameListModel::updateCacheSize(int num_rows, int num_columns)
|
|
|
|
|
@ -1598,8 +1606,6 @@ void GameListWidget::setShowLocalizedTitles(bool enabled)
|
|
|
|
|
Host::SetBaseBoolSettingValue("UI", "GameListShowLocalizedTitles", enabled);
|
|
|
|
|
Host::CommitBaseSettingChanges();
|
|
|
|
|
m_model->setShowLocalizedTitles(enabled);
|
|
|
|
|
if (isShowingGameGrid())
|
|
|
|
|
m_model->refresh();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GameListWidget::setShowGameIcons(bool enabled)
|
|
|
|
|
@ -1621,8 +1627,6 @@ void GameListWidget::setShowCoverTitles(bool enabled)
|
|
|
|
|
Host::CommitBaseSettingChanges();
|
|
|
|
|
m_model->setShowCoverTitles(enabled);
|
|
|
|
|
m_grid_view->updateLayout();
|
|
|
|
|
if (isShowingGameGrid())
|
|
|
|
|
m_model->refresh();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GameListWidget::updateView(bool grid_view)
|
|
|
|
|
|