mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Add methods to the flow implementations to add new items dynamically
This commit is contained in:
@ -1084,6 +1084,13 @@ void PictureFlow::addSlide(const QPixmap &pixmap)
|
||||
addSlide(pixmap.toImage());
|
||||
}
|
||||
|
||||
void PictureFlow::insertSlide(int index)
|
||||
{
|
||||
d->state->slideImages.insert(index, new QImage());
|
||||
d->state->marks.insert(index, YACReader::Unread);
|
||||
triggerRender();
|
||||
}
|
||||
|
||||
void PictureFlow::removeSlide(int index)
|
||||
{
|
||||
int c = d->state->slideImages.count();
|
||||
|
Reference in New Issue
Block a user