From 373c621bf4dc2ab07bb9c4f19c783fd36debb0dc Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Tue, 3 May 2016 09:57:24 +0200 Subject: Add QVector support to JS sequences Change-Id: I731355aa1754721236f3711a65af4f96781cebc0 Task-number: QTBUG-51467 Reviewed-by: Simon Hausmann --- tests/auto/qml/qqmlecmascript/testtypes.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/auto/qml/qqmlecmascript/testtypes.cpp') diff --git a/tests/auto/qml/qqmlecmascript/testtypes.cpp b/tests/auto/qml/qqmlecmascript/testtypes.cpp index 2afa21ddd6..d9ddcd71a7 100644 --- a/tests/auto/qml/qqmlecmascript/testtypes.cpp +++ b/tests/auto/qml/qqmlecmascript/testtypes.cpp @@ -295,6 +295,18 @@ public: { return v; } + Q_INVOKABLE QVector integerVector(QVector v) const + { + return v; + } + Q_INVOKABLE QVector realVector(QVector v) const + { + return v; + } + Q_INVOKABLE QVector boolVector(QVector v) const + { + return v; + } }; static MyInheritedQmlObject *theSingletonObject = 0; -- cgit v1.2.3