adding a way to get modelIndex from songProxyModel

This commit is contained in:
Chris Cochrun 2023-03-02 05:56:21 -06:00
parent aba253559c
commit 5cc531f046
2 changed files with 14 additions and 0 deletions

View file

@ -70,6 +70,7 @@ public:
const QString &horizontalTextAlignment);
Q_INVOKABLE void updateFont(const int &row, const QString &font);
Q_INVOKABLE void updateFontSize(const int &row, const int &fontSize);
Q_INVOKABLE QModelIndex idx(int row);
Q_INVOKABLE void newSong();
Q_INVOKABLE void deleteSong(const int &row);
@ -121,6 +122,7 @@ public:
SongSqlModel *songModel();
Q_INVOKABLE QModelIndex idx(int row);
Q_INVOKABLE QModelIndex modelIndex(int row);
// Q_INVOKABLE bool selected(const int &row);
// QVariant data(const QModelIndex &index, int role) const override;