adding proxy models and search to all sql models
This commit is contained in:
parent
45fbbde792
commit
57ffdc3ff0
8 changed files with 75 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define PRESENTATIONSQLMODEL_H
|
||||
|
||||
#include <QSqlTableModel>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <qobject.h>
|
||||
#include <qobjectdefs.h>
|
||||
#include <qqml.h>
|
||||
|
|
@ -52,4 +53,14 @@ private:
|
|||
int m_pageCount;
|
||||
};
|
||||
|
||||
class PresentationProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PresentationProxyModel(QObject *parent = nullptr);
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif //PRESENTATIONSQLMODEL_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue