Qt: Support changing theme without reopening window

This commit is contained in:
Connor McLaughlin
2022-07-24 23:29:20 +10:00
parent bc49e2f627
commit 5510f66a12
5 changed files with 15 additions and 3 deletions

View File

@ -146,6 +146,12 @@ void GameListModel::updateCacheSize(int width, int height)
m_cover_pixmap_cache.SetMaxCapacity(static_cast<int>(std::max(num_columns * num_rows, MIN_COVER_CACHE_SIZE)));
}
void GameListModel::reloadCommonImages()
{
loadCommonImages();
refresh();
}
void GameListModel::loadOrGenerateCover(const GameList::Entry* ge)
{
QFuture<QPixmap> future =