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
|
@ -50,11 +50,20 @@ private:
|
|||
class ImageProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(ImageSqlModel *imageModel READ imageModel)
|
||||
|
||||
public:
|
||||
explicit ImageProxyModel(QObject *parent = nullptr);
|
||||
~ImageProxyModel() = default;
|
||||
|
||||
ImageSqlModel *imageModel();
|
||||
|
||||
|
||||
public slots:
|
||||
Q_INVOKABLE QVariantMap getImage(const int &row);
|
||||
Q_INVOKABLE void deleteImage(const int &row);
|
||||
|
||||
private:
|
||||
ImageSqlModel *m_imageModel;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue