the addition of a thumbnailer that works for videos

the previewSlideDelegate now uses the thumbnails instead
This commit is contained in:
Chris Cochrun 2023-02-08 14:16:26 -06:00
parent 1b55be29e5
commit 014a38a4f9
11 changed files with 638 additions and 37 deletions

View file

@ -29,7 +29,8 @@ public:
SlideIndexRole,
ImageCountRole,
ActiveRole,
SelectedRole
SelectedRole,
VidThumbnailRole
};
// Basic functionality:
@ -79,7 +80,8 @@ public:
Q_INVOKABLE QVariantMap getItem(int index) const;
Q_INVOKABLE QVariantList getItems();
Q_INVOKABLE int findSlideIdFromServItm(int index);
Q_INVOKABLE QString thumbnailVideo(QString video, int serviceItemId);
Q_INVOKABLE QString thumbnailVideo(QString video, int serviceItemId, int index);
QImage frameToImage(const QString &video, int width);
public slots: