add newItem function to interface with QML
In order to make sure QML can properly interact with Rust I'll use a function in the proxy model to interact with the actual model underneath in Rust.
This commit is contained in:
parent
b2a87b76b6
commit
85285b7d02
3 changed files with 7 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ public:
|
|||
|
||||
public slots:
|
||||
Q_INVOKABLE QVariantMap getImage(const int &row);
|
||||
Q_INVOKABLE void newItem(const QUrl &url);
|
||||
Q_INVOKABLE void deleteImage(const int &row);
|
||||
Q_INVOKABLE void deleteImages(const QVector<int> &rows);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue