Commit graph

30 commits

Author SHA1 Message Date
Chris Cochrun
4296a205a8 making signal and slots use appropriate signals
This makes it so other DataChanged signals don't reset the view as was
happening before.
2023-04-01 07:20:46 -05:00
Chris Cochrun
060341adb7 video_thumbnail works to be set in rust
Since every slide is asking for their own, we don't need to loop
through all slides, we just use the index to put the thumbnail into
the right slides and emit data changed.
2023-04-01 07:02:42 -05:00
Chris Cochrun
995f9ffc03 add video_thumbnail additional
The actual code to generate thumbnails is still in C++ but I've added
a helper method to Rust now. It still needs connected.
2023-04-01 06:52:02 -05:00
Chris Cochrun
0f0f16e069 fix activate
slide_model.rs activate function now properly tells of the data that
was changed so that ListViews that use it as a model will reset their
data properly on changes.

The important parts were to ensure we are using the right indexes for
top_left and bottom_right. Then also ensure the roles are correct, but
I think I had that already, just went with the implementation that
CXX-Qt used in their examples.
2023-03-31 14:47:44 -05:00
Chris Cochrun
bd2002ada2 ensure active is proper color
For some reason the right value isn't being loaded on dataChanged, so
this makes sure to reset the value correctly for now.
2023-03-31 14:10:17 -05:00
Chris Cochrun
0a9c17cdde add activate function properly
While the previous function technically worked, the connections
weren't setup properly. Also the row_count function wasn't running
because it requires a QModelIndex parameter. Added a simple count
function to make sure we know how many slides there are in QML.
2023-03-31 13:13:20 -05:00
Chris Cochrun
e2e44f1c3c working highlightBar 2023-03-12 06:30:47 -05:00
Chris Cochrun
5fe5a5b621 switching all layouts to newer layouts 2023-03-03 16:47:49 -06:00
Chris Cochrun
e01d0491e8 setting label to serviceItem name instead of id 2023-02-17 10:25:27 -06:00
Chris Cochrun
014a38a4f9 the addition of a thumbnailer that works for videos
the previewSlideDelegate now uses the thumbnails instead
2023-02-08 14:16:26 -06:00
Chris Cochrun
1b55be29e5 trying to use mpv as a thumbnailing utility 2023-02-07 15:25:51 -06:00
Chris Cochrun
ca399bb8cd some changes to the gridview and presentation previewer 2023-01-31 13:54:44 -06:00
Chris Cochrun
1dfe58c996 some debugging helpful pieces to be removed later 2023-01-27 16:45:38 -06:00
Chris Cochrun
31db6ab1ef making highlight follow changeslide 2023-01-22 14:36:21 -06:00
Chris Cochrun
1ed76ff3e3 better working changing slides and serviceItems 2023-01-20 15:38:11 -06:00
Chris Cochrun
902bf9d1f2 ui tweaks and ensuring we are getting data from model 2023-01-20 14:20:10 -06:00
Chris Cochrun
42df2d7cde switching slides while selecting in listview 2023-01-20 14:19:48 -06:00
Chris Cochrun
f535bc1500 a lot of tweaks to make changing slides work 2023-01-20 13:38:40 -06:00
Chris Cochrun
d70cd4091c visually see slides 2023-01-20 07:31:54 -06:00
Chris Cochrun
453c67f237 changed all serviceItemModel to singleton ServiceItemModel 2023-01-20 07:06:25 -06:00
Chris Cochrun
95bbb12d8a some leftover changes before the refactor 2023-01-18 15:57:18 -06:00
Chris Cochrun
e734489bde notes 2023-01-17 15:23:15 -06:00
Chris Cochrun
7be875682f removing some debugging cruft 2023-01-17 14:50:15 -06:00
Chris Cochrun
7d11fa86ba adding a bar to track the active slide 2023-01-17 13:53:42 -06:00
Chris Cochrun
bb2c58773e removing cruft 2023-01-17 10:26:33 -06:00
Chris Cochrun
38885a5149 creating a slideIndex on SlideObject and referencing as active slide 2023-01-17 09:48:35 -06:00
Chris Cochrun
84f89fb201 adding changeSlideAndIndex and enabling that on previewSlidesList 2023-01-17 06:25:09 -06:00
Chris Cochrun
d6da3b546c better debugging: all print statements are now console.log 2023-01-17 05:52:34 -06:00
Chris Cochrun
cadd031ac6 making the PreviewSlideListDelegate show multiple slides 2023-01-17 05:08:54 -06:00
Chris Cochrun
40cb3163e2 making a PreviewSlideListDelegate and using a repeater 2023-01-16 17:11:52 -06:00