mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
Qt: Fix theme change resetting cover scale
This commit is contained in:
parent
bec0d6e7df
commit
f2ba596164
|
@ -115,6 +115,7 @@ GameListModel::GameListModel(QObject* parent /* = nullptr */)
|
||||||
: QAbstractTableModel(parent), m_cover_pixmap_cache(MIN_COVER_CACHE_SIZE)
|
: QAbstractTableModel(parent), m_cover_pixmap_cache(MIN_COVER_CACHE_SIZE)
|
||||||
{
|
{
|
||||||
loadCommonImages();
|
loadCommonImages();
|
||||||
|
setCoverScale(1.0f);
|
||||||
setColumnDisplayNames();
|
setColumnDisplayNames();
|
||||||
}
|
}
|
||||||
GameListModel::~GameListModel() = default;
|
GameListModel::~GameListModel() = default;
|
||||||
|
@ -560,7 +561,6 @@ void GameListModel::loadCommonImages()
|
||||||
m_compatibility_pixmaps[i] = QtUtils::GetIconForCompatibility(static_cast<GameDatabase::CompatibilityRating>(i)).pixmap(96, 24);
|
m_compatibility_pixmaps[i] = QtUtils::GetIconForCompatibility(static_cast<GameDatabase::CompatibilityRating>(i)).pixmap(96, 24);
|
||||||
|
|
||||||
m_placeholder_pixmap.load(QStringLiteral("%1/images/cover-placeholder.png").arg(QtHost::GetResourcesBasePath()));
|
m_placeholder_pixmap.load(QStringLiteral("%1/images/cover-placeholder.png").arg(QtHost::GetResourcesBasePath()));
|
||||||
setCoverScale(1.0f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameListModel::setColumnDisplayNames()
|
void GameListModel::setColumnDisplayNames()
|
||||||
|
|
Loading…
Reference in a new issue