Allow signal parameters which are custom QML object-types
authorChris Adams <christopher.adams@nokia.com>
Fri, 13 Jul 2012 05:53:04 +0000 (15:53 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 8 Aug 2012 04:04:03 +0000 (06:04 +0200)
commit92562eacbc3c614a83a734f1108ed7df02415eae
tree05fc063849e032cb03e4f919811d8ea4da147773
parentb2120f68683b7948891d72fe077f44ab7e6baf18
Allow signal parameters which are custom QML object-types

This commit allows lazy resolution of signal parameter types, which
allows QML object types to be used as signal parameters.  If a signal
is emitted with an incorrect parameter type, it will be passed through
as a null parameter.

Task-number: QTBUG-14550
Change-Id: I7e899ad57452826cc405bed10c541f8d35789d04
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 files changed:
src/qml/qml/qqmlboundsignal.cpp
src/qml/qml/qqmlcompiler.cpp
src/qml/qml/qqmlscript.cpp
src/qml/qml/qqmlscript_p.h
tests/auto/qml/qqmllanguage/data/OtherSignalParam.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/SignalEmitter.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/SignalParam.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/signal.1.errors.txt
tests/auto/qml/qqmllanguage/data/signal.6.errors.txt [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/signal.6.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/signalParameterTypes.1.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/signalParameterTypes.2.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp