Fix QObject::receivers() within connectNotify()
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>
Fri, 28 Sep 2012 09:28:23 +0000 (11:28 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 10 Oct 2012 09:21:15 +0000 (11:21 +0200)
commitb1c6e095404ccb7788e6b12fff692c71f4900815
treec9e25e2e53a5b0d7c10ac0e6cef1e8fae71261d0
parent581c57125368eb6ef0b853e037649cf0c1a8bc80
Fix QObject::receivers() within connectNotify()

The receiver count needs to be correct in connectNotify() to be
compatible with ordinary connections.
Fix this and add test.

Change-Id: Icff0486dac49876b8c5d8836a85cff9284368a52
Reviewed-by: Alan Alpert <416365416c@gmail.com>
src/qml/qml/qqmlnotifier_p.h
tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp