adding active and selected knowledge to model

This commit is contained in:
Chris Cochrun 2022-09-27 06:39:36 -05:00
parent 7266a0b047
commit 56086dfe74
5 changed files with 70 additions and 2 deletions

View file

@ -22,7 +22,9 @@ public:
TextRole,
AudioRole,
FontRole,
FontSizeRole
FontSizeRole,
ActiveRole,
SelectedRole
};
// Basic functionality:
@ -83,6 +85,7 @@ public:
Q_INVOKABLE bool move(int sourceIndex, int destIndex);
Q_INVOKABLE bool moveDown(int index);
Q_INVOKABLE bool moveUp(int index);
Q_INVOKABLE bool select(int id);
Q_INVOKABLE QVariantMap getItem(int index) const;
private: