mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
Add support for loading custom comic images
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user