Add support for loading custom comic images

This commit is contained in:
Luis Ángel San Martín
2025-05-09 19:25:02 +02:00
parent 0457c08fca
commit 508ff6d547
9 changed files with 99 additions and 27 deletions

View File

@ -404,12 +404,7 @@ ComicInfo &ComicInfo::operator=(const ComicInfo &comicInfo)
QPixmap ComicInfo::getCover(const QString &basePath)
{
if (cover.isNull()) {
cover.load(YACReader::LibraryPaths::coverPath(basePath, hash));
}
QPixmap c;
c.convertFromImage(cover);
return c;
return QPixmap(YACReader::LibraryPaths::coverPath(basePath, hash));
}
QStringList ComicInfo::getWriters()