Fix asynchronous signals from QObjects in different threads


Switches the signal listener in QWebChannel from using
Qt::DirectConnection to Qt::AutoConnection to relay signals
from QObjects in different affinities than the QWebChannel.

Also adds a unit test in testAsyncObject() to verify that
QWebChannel no longer crashes when receiving such a signal,
and that such objects can be added and removed dynamically.

Task-number: QTBUG-51366
Change-Id: I51a4886286fec9257a21ea95360c1ea8889a584a
Reviewed-by: Dave Andrews <jetdog330@hotmail.com>
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
commit7cb2d467c3421eced44ae7b887b8738cc68595fc
parente354bdc5cbe33621def2b200f01d6376291570fc
authorDave Andrews <jetdog330@hotmail.com>
committerMilian Wolff <milian.wolff@kdab.com>
commit timeThu, 29 Sep 2016 15:04:25 +0000