embedded song_model into the song_editor finally

In order to embed a qobject from another file you need to find the
generated .h file in the build path and make sure to include it.
This commit is contained in:
Chris Cochrun 2024-09-17 06:20:35 -05:00
parent 0aa966e8b9
commit e1cb837249
2 changed files with 49 additions and 9 deletions

View file

@ -38,6 +38,9 @@ modified src/rust/service_item_model.rs
#+end_src
This represents an example of what it'd look like to add better types. If I can ensure to model things better I could leave out all the extra pieces in the ServiceItem struct and the Slide struct and include an ItemType. This would then let me jump to the appropriate db and get the right info for each item.
I've got SlideType enums working
*** Move logic of changing slides to slide_model
Since the slide_object is merely supposed to be the view of the current slide, deciding which slide to switch to should be entirely on the slide_model, not the slide_object. This way slide_object doesn't need to know anything about the which slide is next and instead have a function to update everything to the slide returned from slide_model's new slide.