diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-08 13:32:24 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-08 15:28:58 +0200 |
commit | 14b78c9a795e725fd92450573344d7f371b2f101 (patch) | |
tree | 62a36148d25d6b3c6a714f0d6a189d14c4e8a0e1 /src/qml/types/qqmldelegatemodel_p_p.h | |
parent | c5ec33e7eec5015fad526bbc979e32e4dbc1889d (diff) |
Convert qqmldelegatemodel to not use v8::Persistent
Change-Id: I337aaa546f7fa93c829ad0f3c1f651347e93f8d4
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/types/qqmldelegatemodel_p_p.h')
-rw-r--r-- | src/qml/types/qqmldelegatemodel_p_p.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qml/types/qqmldelegatemodel_p_p.h b/src/qml/types/qqmldelegatemodel_p_p.h index b54e8bb5b5..16ecdd80be 100644 --- a/src/qml/types/qqmldelegatemodel_p_p.h +++ b/src/qml/types/qqmldelegatemodel_p_p.h @@ -80,9 +80,6 @@ public: int parseGroups(const QStringList &groupNames) const; int parseGroups(const v8::Handle<v8::Value> &groupNames) const; - static void release_index(v8::Persistent<v8::Value> object, void *parameter); - static void release_model(v8::Persistent<v8::Value> object, void *parameter); - static v8::Handle<v8::Value> get_model(v8::Handle<v8::String>, const v8::AccessorInfo &info); static v8::Handle<v8::Value> get_groups(v8::Handle<v8::String>, const v8::AccessorInfo &info); static void set_groups( @@ -97,7 +94,7 @@ public: QV8Engine * const v8Engine; QQmlDelegateModelAttachedMetaObject *metaObject; const QStringList groupNames; - v8::Persistent<v8::ObjectTemplate> constructor; + QExplicitlySharedDataPointer<v8::ObjectTemplate> constructor; }; class QQmlAdaptorModel; |