Permit signals to be emitted in a different thread
authorAaron Kennedy <aaron.kennedy@nokia.com>
Fri, 11 May 2012 13:13:47 +0000 (14:13 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 11 May 2012 15:23:20 +0000 (17:23 +0200)
commit5570040771ec610583473e2d9e8e069474364cf1
treecb3b406776731996783cdcab3704a2338b944b11
parent125f4ceb393886015574a3c3fd0fc264a4f2deb6
Permit signals to be emitted in a different thread

The QQmlNotifier approach to connecting to signals did not
support the cross-thread signal/slot model used elsewhere in
Qt.  This change allows one specific case of that - emitting
a signal in a different thread than the one the QObject
lives - to work.

Task-number: QTBUG-25647
Change-Id: Ia8fdaf4c7d7e2ccd7ff7657bb1d8e26277eb60aa
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
16 files changed:
src/qml/qml/qqmlboundsignal.cpp
src/qml/qml/qqmlboundsignal_p.h
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmljavascriptexpression.cpp
src/qml/qml/qqmlnotifier.cpp
src/qml/qml/qqmlnotifier_p.h
src/qml/qml/qqmlproperty.cpp
src/qml/qml/qqmlvme.cpp
src/qml/qml/qqmlvmemetaobject.cpp
src/qml/qml/v4/qv4bindings.cpp
src/qml/qml/v4/qv4bindings_p.h
src/quick/util/qquickconnections.cpp
tests/auto/qml/qqmlecmascript/data/threadSignal.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