preparing for some refactoring
This commit is contained in:
parent
8de473519b
commit
84b31caf6b
4 changed files with 89 additions and 63 deletions
|
|
@ -32,6 +32,7 @@ pub mod qobject {
|
|||
#[qproperty(i32, font_size)]
|
||||
#[qproperty(f32, video_start_time)]
|
||||
#[qproperty(f32, video_end_time)]
|
||||
#[qproperty(QString, video_thumbnail)]
|
||||
// #[qproperty(*mut SlideModel, slide_model)]
|
||||
type SlideObject = super::SlideObjectRust;
|
||||
|
||||
|
|
@ -116,6 +117,7 @@ pub struct SlideObjectRust {
|
|||
font_size: i32,
|
||||
video_start_time: f32,
|
||||
video_end_time: f32,
|
||||
video_thumbnail: QString,
|
||||
// slide_model: *mut slide_model::SlideModel,
|
||||
}
|
||||
|
||||
|
|
@ -139,6 +141,7 @@ impl Default for SlideObjectRust {
|
|||
inner_slide_index: 0,
|
||||
video_start_time: 0.0,
|
||||
video_end_time: 0.0,
|
||||
video_thumbnail: QString::from(""),
|
||||
// slide_model: std::ptr::null_mut(),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue