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
|
@ -111,11 +111,20 @@ private:
|
|||
class SongProxyModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(SongSqlModel *songModel READ songModel)
|
||||
|
||||
public:
|
||||
explicit SongProxyModel(QObject *parent = nullptr);
|
||||
~SongProxyModel() = default;
|
||||
|
||||
SongSqlModel *songModel();
|
||||
|
||||
|
||||
public slots:
|
||||
Q_INVOKABLE QVariantMap getSong(const int &row);
|
||||
Q_INVOKABLE void deleteSong(const int &row);
|
||||
|
||||
private:
|
||||
SongSqlModel *m_songModel;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue