adding proxy models and search to all sql models

This commit is contained in:
Chris Cochrun 2023-02-17 10:09:41 -06:00
parent 45fbbde792
commit 57ffdc3ff0
8 changed files with 75 additions and 6 deletions

View file

@ -2,6 +2,7 @@
#define VIDEOSQLMODEL_H
#include <QSqlTableModel>
#include <QSortFilterProxyModel>
#include <qobject.h>
#include <qobjectdefs.h>
#include <qqml.h>
@ -64,4 +65,14 @@ private:
bool m_loop;
};
class VideoProxyModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit VideoProxyModel(QObject *parent = nullptr);
};
#endif //VIDEOSQLMODEL_H