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

@ -112,6 +112,18 @@ void ComicFlow::wheelEvent(QWheelEvent *event)
event->accept();
}
void ComicFlow::insertSlide(const QString &path, int index)
{
imageFiles.insert(index, path);
imagesLoaded.insert(index, false);
imagesSetted.insert(index, false);
YACReaderFlow::insertSlide(index);
resetWorkerIndex();
preload();
}
void ComicFlow::removeSlide(int cover)
{
imageFiles.removeAt(cover);