Allow passing qmlRegisterSingletonType QObjects to C++ as QObject*
authorAlbert Astals Cid <albert.astals@canonical.com>
Wed, 13 Nov 2013 10:03:52 +0000 (11:03 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 14 Nov 2013 07:03:55 +0000 (08:03 +0100)
commit1df8a42e5b7fc718121dc92dd7203046d25015e0
tree140b430265e1f92d70236e792d08e92356a016c8
parent3afffa47feabc80e1bc20ffd2143a722a1c360a2
Allow passing qmlRegisterSingletonType QObjects to C++ as QObject*

At the moment you can pass them as their FinalType* or
as one of their ParentType* but not as QObject* which
does not make much sense to me

Task-number: QTBUG-34617
Task-number: QTBUG-30730

Change-Id: Id5cfb7bbb123456ef43f44f33b450f8966a7641a
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4qobjectwrapper.cpp
src/qml/qml/qqmltypewrapper.cpp
src/qml/qml/qqmltypewrapper_p.h
tests/auto/qml/qqmlecmascript/data/singletonTest.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/testtypes.cpp
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp