adding active and selected knowledge to model
This commit is contained in:
parent
7266a0b047
commit
56086dfe74
5 changed files with 70 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue