aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/v8/qv8qobjectwrapper_p.h
diff options
context:
space:
mode:
authorGlenn Watson <glenn.watson@nokia.com>2011-10-26 10:28:01 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-26 03:41:53 +0200
commitca3dfc52667a036901d640e4f9ed30f267153b2c (patch)
tree99c036580179b73e74e3e798cd91ff2b3fc5341d /src/declarative/qml/v8/qv8qobjectwrapper_p.h
parent31d34d98f192035c42bd1d1c07bf6e297da76220 (diff)
Optimize listmodel and allow nested elements from worker script.
Added support for nested listmodels when used from a worker script thread. Optimized the implementation of ListModel, especially the performance of appending a large number of items. Added a batch append mode (with an array of JS objects) to reduce the overhead of calling from JS into native code for each append operation. Task-number:QTBUG-21508 Change-Id: I07b381dc3e8200d92d6e0af458df8850d78b510f Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qv8qobjectwrapper_p.h')
-rw-r--r--src/declarative/qml/v8/qv8qobjectwrapper_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/v8/qv8qobjectwrapper_p.h b/src/declarative/qml/v8/qv8qobjectwrapper_p.h
index be118a9c34..564510f15d 100644
--- a/src/declarative/qml/v8/qv8qobjectwrapper_p.h
+++ b/src/declarative/qml/v8/qv8qobjectwrapper_p.h
@@ -83,7 +83,7 @@ public:
v8::Handle<v8::Value> newQObject(QObject *object);
bool isQObject(v8::Handle<v8::Object>);
QObject *toQObject(v8::Handle<v8::Object>);
- QObject *toQObject(QV8ObjectResource *);
+ static QObject *toQObject(QV8ObjectResource *);
enum RevisionMode { IgnoreRevision, CheckRevision };
inline v8::Handle<v8::Value> getProperty(QObject *, const QHashedV8String &, RevisionMode);