mirror of
https://github.com/YACReader/yacreader
synced 2025-09-20 12:14:37 -04:00
Make ComicFlow/ComicFlowWidget able to insert new covers at a given position
This commit is contained in:
@ -133,6 +133,11 @@ void ComicFlowWidgetSW::updateConfig(QSettings *settings)
|
||||
}
|
||||
}
|
||||
|
||||
void ComicFlowWidgetSW::add(const QString &path, int index)
|
||||
{
|
||||
flow->insertSlide(path, index);
|
||||
}
|
||||
|
||||
void ComicFlowWidgetSW::remove(int cover)
|
||||
{
|
||||
flow->removeSlide(cover);
|
||||
@ -327,6 +332,11 @@ void ComicFlowWidgetGL::updateConfig(QSettings *settings)
|
||||
;
|
||||
}
|
||||
|
||||
void ComicFlowWidgetGL::add(const QString &path, int index)
|
||||
{
|
||||
flow->add(path, index);
|
||||
}
|
||||
|
||||
void ComicFlowWidgetGL::remove(int cover)
|
||||
{
|
||||
flow->remove(cover);
|
||||
|
Reference in New Issue
Block a user