mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Add a method to make a comics model reload the continue reading list
This commit is contained in:
parent
f1dd6d339d
commit
901f05feb1
@ -883,6 +883,11 @@ void ComicModel::removeInTransaction(int row)
|
|||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ComicModel::reloadContinueReading()
|
||||||
|
{
|
||||||
|
setupReadingModelData(_databasePath);
|
||||||
|
}
|
||||||
|
|
||||||
void ComicModel::remove(int row)
|
void ComicModel::remove(int row)
|
||||||
{
|
{
|
||||||
removeInTransaction(row);
|
removeInTransaction(row);
|
||||||
|
@ -111,6 +111,7 @@ public:
|
|||||||
qint64 asignNumbers(QList<QModelIndex> list, int startingNumber);
|
qint64 asignNumbers(QList<QModelIndex> list, int startingNumber);
|
||||||
// void remove(ComicDB * comic, int row);
|
// void remove(ComicDB * comic, int row);
|
||||||
void removeInTransaction(int row);
|
void removeInTransaction(int row);
|
||||||
|
void reloadContinueReading();
|
||||||
void reload(const ComicDB &comic);
|
void reload(const ComicDB &comic);
|
||||||
void resetComicRating(const QModelIndex &mi);
|
void resetComicRating(const QModelIndex &mi);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user