🐛 need to get video start and end times working

This is waiting till service_item_model.rs is the model actually used
for ServiceList. Right now we are still using C++ so once that
switches, we can add it in service_item_model.

This way we don't add anymore C++ code that we are likely to throw away.
This commit is contained in:
Chris Cochrun 2023-05-19 16:01:08 -05:00
parent 485a7ac223
commit ea74fda363
4 changed files with 13 additions and 0 deletions

View file

@ -211,6 +211,12 @@ mod slide_obj {
self.as_mut().set_slide_size(slide_size);
}
}
let video_start_time = item
.get(&QString::from("videoStartTime"))
.unwrap_or(QVariant::from(&0.0));
if let Some(int) = video_start_time.value::<f32>() {
self.as_mut().set_video_start_time(int)
}
let icount = item
.get(&QString::from("imageCount"))
.unwrap_or(QVariant::from(&1));