ok I added some proxy models to all sql models, but they aint done..
This commit is contained in:
parent
cc501873c1
commit
c9f6fc4d1b
8 changed files with 117 additions and 71 deletions
|
|
@ -53,14 +53,24 @@ private:
|
|||
int m_pageCount;
|
||||
};
|
||||
|
||||
|
||||
class PresentationProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(PresentationSqlModel *presentationModel READ presentationModel)
|
||||
|
||||
public:
|
||||
explicit PresentationProxyModel(QObject *parent = nullptr);
|
||||
~PresentationProxyModel() = default;
|
||||
|
||||
PresentationSqlModel *presentationModel();
|
||||
|
||||
|
||||
public slots:
|
||||
Q_INVOKABLE QVariantMap getPresentation(const int &row);
|
||||
Q_INVOKABLE void deletePresentation(const int &row);
|
||||
|
||||
private:
|
||||
PresentationSqlModel *m_presentationModel;
|
||||
};
|
||||
|
||||
#endif //PRESENTATIONSQLMODEL_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue