diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-06-03 22:12:36 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-03 23:25:39 +0200 |
commit | a6e22573e0ff47416169d517f6a08c7ed05f9d38 (patch) | |
tree | 283aa83edb28a7c7e0dcdea5c4de846cddc7d730 /src/qml/types/qqmllistmodel_p_p.h | |
parent | f552715cf68a6481ebf8b147785ae15d3865c5e9 (diff) |
Convert QQmlListModel to v4
Remove all usages of v8 API in the list model.
Change-Id: I9dc8acecbbc77a97cf3c2a318e222bdb4b05c7c5
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/types/qqmllistmodel_p_p.h')
-rw-r--r-- | src/qml/types/qqmllistmodel_p_p.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/qml/types/qqmllistmodel_p_p.h b/src/qml/types/qqmllistmodel_p_p.h index 0190081320..5cee6a0251 100644 --- a/src/qml/types/qqmllistmodel_p_p.h +++ b/src/qml/types/qqmllistmodel_p_p.h @@ -209,12 +209,12 @@ public: }; const Role *getRoleOrCreate(const QString &key, const QVariant &data); - const Role &getRoleOrCreate(v8::Handle<v8::String> key, Role::DataType type); + const Role &getRoleOrCreate(const QV4::Value &key, Role::DataType type); const Role &getRoleOrCreate(const QString &key, Role::DataType type); const Role &getExistingRole(int index) { return *roles.at(index); } const Role *getExistingRole(const QString &key); - const Role *getExistingRole(v8::Handle<v8::String> key); + const Role *getExistingRole(const QV4::Value &key); int roleCount() const { return roles.count(); } @@ -250,14 +250,14 @@ private: int setVariantProperty(const ListLayout::Role &role, const QVariant &d); - int setJsProperty(const ListLayout::Role &role, v8::Handle<v8::Value> d, QV8Engine *eng); + int setJsProperty(const ListLayout::Role &role, const QV4::Value &d, QV8Engine *eng); int setStringProperty(const ListLayout::Role &role, const QString &s); int setDoubleProperty(const ListLayout::Role &role, double n); int setBoolProperty(const ListLayout::Role &role, bool b); int setListProperty(const ListLayout::Role &role, ListModel *m); int setQObjectProperty(const ListLayout::Role &role, QObject *o); - int setVariantMapProperty(const ListLayout::Role &role, v8::Handle<v8::Object> o, QV8Engine *eng); + int setVariantMapProperty(const ListLayout::Role &role, QV4::Object *o, QV8Engine *eng); int setVariantMapProperty(const ListLayout::Role &role, QVariantMap *m); int setDateTimeProperty(const ListLayout::Role &role, const QDateTime &dt); @@ -266,7 +266,7 @@ private: void setBoolPropertyFast(const ListLayout::Role &role, bool b); void setQObjectPropertyFast(const ListLayout::Role &role, QObject *o); void setListPropertyFast(const ListLayout::Role &role, ListModel *m); - void setVariantMapFast(const ListLayout::Role &role, v8::Handle<v8::Object> o, QV8Engine *eng); + void setVariantMapFast(const ListLayout::Role &role, QV4::Object *o, QV8Engine *eng); void setDateTimePropertyFast(const ListLayout::Role &role, const QDateTime &dt); void clearProperty(const ListLayout::Role &role); @@ -302,7 +302,7 @@ public: void destroy(); int setOrCreateProperty(int elementIndex, const QString &key, const QVariant &data); - int setExistingProperty(int uid, const QString &key, v8::Handle<v8::Value> data, QV8Engine *eng); + int setExistingProperty(int uid, const QString &key, const QV4::Value &data, QV8Engine *eng); QVariant getProperty(int elementIndex, int roleIndex, const QQmlListModel *owner, QV8Engine *eng); ListModel *getListProperty(int elementIndex, const ListLayout::Role &role); @@ -327,11 +327,11 @@ public: return elements.count(); } - void set(int elementIndex, v8::Handle<v8::Object> object, QVector<int> *roles, QV8Engine *eng); - void set(int elementIndex, v8::Handle<v8::Object> object, QV8Engine *eng); + void set(int elementIndex, QV4::Object *object, QVector<int> *roles, QV8Engine *eng); + void set(int elementIndex, QV4::Object *object, QV8Engine *eng); - int append(v8::Handle<v8::Object> object, QV8Engine *eng); - void insert(int elementIndex, v8::Handle<v8::Object> object, QV8Engine *eng); + int append(QV4::Object *object, QV8Engine *eng); + void insert(int elementIndex, QV4::Object *object, QV8Engine *eng); void clear(); void remove(int index, int count); |