initial ability to update properties of video_model.rs

I've made it possible to update the properties of the videos. I'll
need to make sure title, start and end times, and paths all work as
well. Let's make videos really good and then move on to images and
presentations.
This commit is contained in:
Chris Cochrun 2023-04-17 11:22:07 -05:00
parent 2311af3b46
commit b037f1a91c
6 changed files with 138 additions and 31 deletions

View file

@ -82,6 +82,11 @@ public slots:
Q_INVOKABLE QVariantMap getVideo(const int &row);
Q_INVOKABLE void deleteVideo(const int &row);
Q_INVOKABLE void deleteVideos(const QVector<int> &row);
Q_INVOKABLE bool updateLoop(int row, bool value);
Q_INVOKABLE bool updateTitle(int row, QString value);
Q_INVOKABLE bool updatePath(int row, QString value);
Q_INVOKABLE bool updateStartTime(int row, float value);
Q_INVOKABLE bool updateEndTime(int row, float value);
private:
VideoModel *m_videoModel;