refactoring, save and load to serviceitemmodel
This commit is contained in:
parent
742e9dd3b4
commit
ae7911fd51
4 changed files with 160 additions and 5 deletions
|
@ -90,6 +90,9 @@ public:
|
|||
Q_INVOKABLE QVariantMap getItem(int index) const;
|
||||
Q_INVOKABLE QVariantList getItems();
|
||||
|
||||
Q_INVOKABLE bool save(QUrl file);
|
||||
Q_INVOKABLE bool load(QUrl file);
|
||||
|
||||
private:
|
||||
QList<ServiceItem *> m_items;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue