mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Add method to ComicView to reload its content
This commit is contained in:
parent
3a0e8db189
commit
0024d9afda
@ -48,6 +48,13 @@ void ComicsView::setModel(ComicModel *m)
|
||||
model = m;
|
||||
}
|
||||
|
||||
void ComicsView::reloadContent()
|
||||
{
|
||||
if (model != nullptr) {
|
||||
model->reload();
|
||||
}
|
||||
}
|
||||
|
||||
void ComicsView::updateInfoForIndex(int index)
|
||||
{
|
||||
QQmlContext *ctxt = view->rootContext();
|
||||
|
@ -30,6 +30,7 @@ public:
|
||||
virtual void selectIndex(int index) = 0;
|
||||
virtual void updateCurrentComicView() = 0;
|
||||
virtual void focusComicsNavigation(Qt::FocusReason reason) = 0;
|
||||
void reloadContent();
|
||||
|
||||
public slots:
|
||||
virtual void updateInfoForIndex(int index);
|
||||
|
Loading…
Reference in New Issue
Block a user