Disallow signal-handler-specification for non-signal methods
authorChris Adams <christopher.adams@nokia.com>
Thu, 21 Jun 2012 06:02:38 +0000 (16:02 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 21 Jun 2012 06:36:51 +0000 (08:36 +0200)
commit73e0e7cd53d2ce457d2cab02895eb253902c555a
treefe019056c5b86dc733f1b44c0f9daadccc6ef012
parent09b605ddcc33575316211156ff5979aa92e7e1fd
Disallow signal-handler-specification for non-signal methods

Previously, the code which checked whether a signal handler
specification was valid was incorrect, in that it only checked that a
method of the appropriate name existed (rather than specifically a
signal method).

This commit ensures that the appropriate code is updated to check the
method for signal-ness.

Task-number: QTBUG-26223
Change-Id: I306f6622aaa710d86c01d5bbc5146eecce7cf2c3
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/qml/qqmlcompiler.cpp
src/qml/qml/qqmlproperty.cpp
tests/auto/qml/qqmllanguage/data/missingSignal.2.errors.txt [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/missingSignal.2.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp