diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-14 15:59:10 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-05-15 23:43:50 +0200 |
commit | ba4dfd429095e32960ad0ac7ad9d2820216a05b1 (patch) | |
tree | 08e609784aa17438f70a63bf2d83afaa1b4648fd /src/qml/qml/v8/qv8sequencewrapper_p.h | |
parent | 4f1bfbdd4623d0909e4b2c94bd0b69e20d99d6f1 (diff) |
First step towards porting sequence wrappers to V4
The idea is to wrap sequence container types such as QStringList or
QList<int> in a JS object that behaves like an array and also shares the
prototype.
The next step is to generalize the QStringList implementation to be re-usable
for the other sequence types.
This also required extending the object iterator with support for these
kind-of array types.
Change-Id: I5f0a14f904233944297708037c944964f1b74923
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/v8/qv8sequencewrapper_p.h')
-rw-r--r-- | src/qml/qml/v8/qv8sequencewrapper_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/v8/qv8sequencewrapper_p.h b/src/qml/qml/v8/qv8sequencewrapper_p.h index b5cc721f4a..c9f2c51b60 100644 --- a/src/qml/qml/v8/qv8sequencewrapper_p.h +++ b/src/qml/qml/v8/qv8sequencewrapper_p.h @@ -82,6 +82,7 @@ public: v8::Handle<v8::Object> newSequence(int sequenceTypeId, QObject *object, int propertyIndex, bool *succeeded); v8::Handle<v8::Object> fromVariant(const QVariant& v, bool *succeeded); QVariant toVariant(QV8ObjectResource *); + QVariant toVariant(QV4::Object *object); QVariant toVariant(v8::Handle<v8::Array> array, int typeHint, bool *succeeded); private: |