mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Make ComicFlow/ComicFlowWidget able to insert new covers at a given position
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user