mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Add method to FolderContentView to reload its contents
This commit is contained in:
parent
b2d48a77ca
commit
80ff6ed63b
@ -203,6 +203,12 @@ void FolderContentView::setContinueReadingModel(ComicModel *model)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FolderContentView::reloadContent()
|
||||||
|
{
|
||||||
|
folderModel->reload();
|
||||||
|
reloadContinueReadingModel();
|
||||||
|
}
|
||||||
|
|
||||||
void FolderContentView::reloadContinueReadingModel()
|
void FolderContentView::reloadContinueReadingModel()
|
||||||
{
|
{
|
||||||
if (!folderModel->isSubfolder) {
|
if (!folderModel->isSubfolder) {
|
||||||
|
@ -22,6 +22,7 @@ public:
|
|||||||
explicit FolderContentView(QAction *toogleRecentVisibilityAction, QWidget *parent = nullptr);
|
explicit FolderContentView(QAction *toogleRecentVisibilityAction, QWidget *parent = nullptr);
|
||||||
void setModel(const QModelIndex &parent, FolderModel *model);
|
void setModel(const QModelIndex &parent, FolderModel *model);
|
||||||
void setContinueReadingModel(ComicModel *model);
|
void setContinueReadingModel(ComicModel *model);
|
||||||
|
void reloadContent();
|
||||||
void reloadContinueReadingModel();
|
void reloadContinueReadingModel();
|
||||||
void setShowRecent(bool visible);
|
void setShowRecent(bool visible);
|
||||||
void setRecentRange(int days);
|
void setRecentRange(int days);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user