aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v8/qv8sequencewrapper_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Finalize sequence wrappingSimon Hausmann2013-05-211-92/+0
| | | | | | | | * Move into QV4 namespace * Get rid of sequence wrapper instance, all static methods now Change-Id: I9a9e7ce10890cfe4625b3571bdb4b0ffec34658a Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Port the rest of the sequence types to V4Simon Hausmann2013-05-211-31/+6
| | | | | Change-Id: Ia248f54b65b74d16e91e6ec72503eb967894586d Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Get rid of v8::BooleanLars Knoll2013-05-211-1/+1
| | | | | Change-Id: I10b4240db78532dfdf972bb0a6f191462d81caaa Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* First step towards porting sequence wrappers to V4Simon Hausmann2013-05-151-0/+1
| | | | | | | | | | | | | | | 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>
* convert qv8sequencewrapper to use QV4::PersistentValueLars Knoll2013-05-081-6/+8
| | | | | Change-Id: I211121a1cd389e7973ca1395e46c8f96f73d3a50 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* More steps towards eliminating the v8 layerSimon Hausmann2013-05-071-3/+3
| | | | | | | | * Changed the return type of the InvocationCallback from a v8 handle to a QV4::Value * Removed v4 auto tests and fixed build of other tests Change-Id: Ic927b925923ca8785170689a5c260969fd1cb794 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Get rid of v8::LocalLars Knoll2013-05-061-10/+10
| | | | | | | | | The class was doing exactly the same thing as v8::Handle in our implementation. Removing it cleans up quite a bit of code. Change-Id: I37a3dcdef062fc388751e9ef0a158b5926ba2efb Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | Change-Id: I6c3bd7bebe3d62d1cfd0fa6334544c9db8398c76 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-231-24/+24
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ie7f5d49ed8235d7a7845ab68f99ad1c220e64d5c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Ensure that copy sequences can be passed as argumentsChris Adams2012-08-091-0/+2
| | | | | | | | | | | | Previously, automatic conversion from JS array to sequence copy resource was not performed in the case where the array was passed as a parameter to a QObject function invocation. This commit adds code to check if the parameter type is a sequence type - and if so, and if the value is a variantlist, we convert it to a sequence of the appropriate type. Change-Id: I3cc3e2f95604bc71d1d8d237e1acffa1e03b78ba Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Fix test failures in Qt Location with string lists.Glenn Watson2012-08-091-1/+2
| | | | | | | | | | | | | Cloning the V8 prototype introduces some unexpected behaviour in the way string lists are used in Qt Location. Instead, leave the prototype intact and used a named property accessor to return the sort method for sequence wrappers. A test case will be added to declarative once a more isolated test case has been created. Change-Id: I533a66f60af4394a2cc8c938fdfc13bd193f0065 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Support JS Array.sort() function for sequence wrappers.Glenn Watson2012-08-081-0/+5
| | | | | | | | | | | | | | The V8 natve sort implementation calls some functions that are incompatible with the way sequence wrappers work. In particular, it calls an internal length() function which does not pass through the length accessor provided by sequence wrappers, so the sort function always thinks the array is zero length. Instead, clone the array prototype and override the sort function with one that is specific to sequence wrappers. Task-number: QTBUG-25269 Change-Id: Ic83b9ee0bd3a0707e512f28057f0f99b432fded4 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-241-0/+106
Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>