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 IMAGESQLMODEL_H
#include <QSqlTableModel>
#include <QSortFilterProxyModel>
#include <qobject.h>
#include <qobjectdefs.h>
#include <qqml.h>
@ -46,4 +47,15 @@ private:
QUrl m_filePath;
};
class ImageProxyModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit ImageProxyModel(QObject *parent = nullptr);
};
#endif //IMAGESQLMODEL_H