diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-09-28 11:28:23 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-10 11:21:15 +0200 |
commit | b1c6e095404ccb7788e6b12fff692c71f4900815 (patch) | |
tree | c9e25e2e53a5b0d7c10ac0e6cef1e8fae71261d0 /tests/auto/qml/qqmlnotifier | |
parent | 581c57125368eb6ef0b853e037649cf0c1a8bc80 (diff) |
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>
Diffstat (limited to 'tests/auto/qml/qqmlnotifier')
-rw-r--r-- | tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp b/tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp index fdfa211126..ae37b6a4fb 100644 --- a/tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp +++ b/tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp @@ -120,6 +120,7 @@ protected: if (signal.name() == "scriptBindingPropChanged") scriptBindingPropConnections++; if (signal.name() == "boundSignal") boundSignalConnections++; if (signal.name() == "unusedSignal") unusedSignalConnections++; + verifyReceiverCount(); //qDebug() << Q_FUNC_INFO << this << signal.name(); } @@ -133,6 +134,7 @@ protected: if (signal.name() == "scriptBindingPropChanged") scriptBindingPropConnections--; if (signal.name() == "boundSignal") boundSignalConnections--; if (signal.name() == "unusedSignal") unusedSignalConnections--; + verifyReceiverCount(); //qDebug() << Q_FUNC_INFO << this << signal.methodSignature(); } |