summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2017-01-13 20:13:07 +0100
committerJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2017-01-13 20:13:07 +0100
commitf07f554d66b106a061512f4a87d84fd77e6a4d09 (patch)
treef9835dc37f07c4c32c220f04195a5d0edd901a4c
parent868ddd32b52e935bc9013621366a0c403f5b6d70 (diff)
downloadqtivi-qface-f07f554d66b106a061512f4a87d84fd77e6a4d09.tar.gz
removed QML access to modifiable model operations
-rw-r--r--builtin/qtcpp/templates/structmodel.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/builtin/qtcpp/templates/structmodel.h b/builtin/qtcpp/templates/structmodel.h
index d212265..96597be 100644
--- a/builtin/qtcpp/templates/structmodel.h
+++ b/builtin/qtcpp/templates/structmodel.h
@@ -20,12 +20,12 @@ public:
{{class}}(QObject *parent=0);
Q_INVOKABLE Qml{{struct}} get(int index);
int count() const;
- Q_INVOKABLE void insert(int row, const Qml{{struct}} &{{struct|lower}});
- Q_INVOKABLE void append(const Qml{{struct}} &{{struct|lower}});
- Q_INVOKABLE void update(int row, const Qml{{struct}} &{{struct|lower}});
- Q_INVOKABLE void remove(int row);
+ void insert(int row, const Qml{{struct}} &{{struct|lower}});
+ void append(const Qml{{struct}} &{{struct|lower}});
+ void update(int row, const Qml{{struct}} &{{struct|lower}});
+ void remove(int row);
void reset(const QList<Qml{{struct}}> data);
- Q_INVOKABLE void clear();
+ void clear();
public: // from QAbstractListModel
virtual int rowCount(const QModelIndex &parent) const;
virtual QVariant data(const QModelIndex &index, int role) const;