videosProxyModel working
This commit is contained in:
parent
c7b35f2b44
commit
cc501873c1
3 changed files with 29 additions and 10 deletions
|
@ -68,12 +68,20 @@ private:
|
|||
class VideoProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(VideoSqlModel *videoModel READ videoModel)
|
||||
|
||||
public:
|
||||
explicit VideoProxyModel(QObject *parent = nullptr);
|
||||
~VideoProxyModel() = default;
|
||||
|
||||
VideoSqlModel *videoModel();
|
||||
|
||||
public slots:
|
||||
Q_INVOKABLE QVariantMap getVideo(const int &row);
|
||||
Q_INVOKABLE void deleteVideo(const int &row);
|
||||
|
||||
private:
|
||||
VideoSqlModel *m_videoModel;
|
||||
};
|
||||
|
||||
#endif //VIDEOSQLMODEL_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue