mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
More migrations to LibraryPaths
This commit is contained in:
@ -1228,10 +1228,10 @@ void ComicModel::notifyCoverChange(const ComicDB &comic)
|
||||
// this doesn't work in QML -> emit dataChanged(index(itemIndex, 0), index(itemIndex, 0), QVector<int>() << CoverPathRole);
|
||||
}
|
||||
|
||||
// ????
|
||||
QUrl ComicModel::getCoverUrlPathForComicHash(const QString &hash) const
|
||||
{
|
||||
return QUrl::fromLocalFile(_databasePath + "/covers/" + hash + ".jpg");
|
||||
auto coverPath = LibraryPaths::coverPathFromLibraryDataPath(_databasePath, hash);
|
||||
return QUrl::fromLocalFile(coverPath);
|
||||
}
|
||||
|
||||
void ComicModel::addComicsToFavorites(const QList<qulonglong> &comicIds)
|
||||
|
@ -852,7 +852,8 @@ QModelIndex FolderModel::addFolderAtParent(const QString &folderName, const QMod
|
||||
|
||||
QUrl FolderModel::getCoverUrlPathForComicHash(const QString &hash) const
|
||||
{
|
||||
return QUrl::fromLocalFile(_databasePath + "/covers/" + hash + ".jpg");
|
||||
auto coverPath = LibraryPaths::coverPathFromLibraryDataPath(_databasePath, hash);
|
||||
return QUrl::fromLocalFile(coverPath);
|
||||
}
|
||||
|
||||
void FolderModel::setShowRecent(bool showRecent)
|
||||
|
Reference in New Issue
Block a user