Adding reveal next and previous buttons
In order to make this work, I had to determine in rust which were html and essentially not call the change_slide function and instead call the reveal_next/previous functions and then tweak it from there.
This commit is contained in:
parent
b589cb2490
commit
da258433d9
5 changed files with 35 additions and 17 deletions
|
@ -592,9 +592,8 @@ impl slide_model::SlideModel {
|
|||
slide.html = true;
|
||||
slide.image_background = background.clone();
|
||||
slide.video_background = QString::from("");
|
||||
slide.slide_index = i;
|
||||
self.as_mut()
|
||||
.insert_slide(&slide, slide_index + i);
|
||||
slide.slide_index = 0;
|
||||
self.as_mut().insert_slide(&slide, slide_index);
|
||||
} else {
|
||||
for i in 0..slide.slide_count {
|
||||
slide.ty = ty.clone();
|
||||
|
@ -787,7 +786,7 @@ impl slide_model::SlideModel {
|
|||
slide.html = true;
|
||||
slide.image_background = background.clone();
|
||||
slide.video_background = QString::from("");
|
||||
slide.slide_index = i;
|
||||
slide.slide_index = 0;
|
||||
self.as_mut().add_slide(&slide);
|
||||
} else {
|
||||
for i in 0..slide.slide_count {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue