Make ComicFlow/ComicFlowWidget able to insert new covers at a given position

This commit is contained in:
Luis Ángel San Martín
2023-08-13 11:17:18 +02:00
parent 024f6df9de
commit c06156a937
4 changed files with 26 additions and 0 deletions

View File

@ -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);