attempt at fixing bug with slides not activating with service item

This commit is contained in:
Chris Cochrun 2023-11-16 11:21:00 -06:00
parent 4685c9eb70
commit c6700907b1
5 changed files with 55 additions and 14 deletions

View file

@ -120,7 +120,9 @@ mod service_item_model {
bottom_right: &'a QModelIndex,
roles: &'a QVector_i32,
},
ActiveChanged,
ActiveChanged {
index: &'a i32,
},
SelectedChanged,
ItemInserted {
index: &'a i32,
@ -630,7 +632,7 @@ mod service_item_model {
);
// We use this signal generated by our signals enum to tell QML that
// the active service_item has changed which is used to reposition views.
self.as_mut().emit_active_changed();
self.as_mut().emit_active_changed(&index);
true
} else {
false
@ -676,7 +678,7 @@ mod service_item_model {
);
// We use this signal generated by our signals enum to tell QML that
// the active service_item has changed which is used to reposition views.
self.as_mut().emit_active_changed();
// self.as_mut().emit_active_changed(index);
true
} else {
false