Allow change of thumbnail size without restart

This commit is contained in:
2022-12-18 00:17:28 +01:00
parent 151f521688
commit e1bed8e1cb
5 changed files with 25 additions and 0 deletions
+11
View File
@@ -76,6 +76,11 @@ int Image::number() const
return m_number;
}
void Image::clearThumbnail()
{
m_thumbnail.reset();
}
void Image::imageLoaded(void *rawImage, ImageInfoData info)
{
m_loading = false;
@@ -284,6 +289,12 @@ void ImageRingList::updateMark()
}
}
void ImageRingList::clearThumbnails()
{
for(auto &img : m_images)
img->clearThumbnail();
}
QModelIndex ImageRingList::index(int row, int column, const QModelIndex &parent) const
{
return createIndex(row, column, m_images.at(row).get());