qt5base-lts/tests/auto
Axel Waggershauser 3c2748afd5 Improve warning messages (and readability) of connectSlotsByName()
While adding a test case for the new behavior, two issues
with the connectSlotsByName implementation came up:

  1. for auto-connected slots that don't exactly match a signal,
     a 'compatible' one is searched. There might be more than
     one of those. The implementation randomly picks any.
  2. The "No matching signal for %s" warning gets printed even for
     slots that can never be connected via connectSlotsMyName
     anyway (e.g. "on_something"). This is inconsistent.

This fixed both: an explicit warning is printed if more than one
'compatible' signal is found and the "No matching signal for %s"
warning is only printed if the slot adheres to the full
"on_child_signal()" naming convention.

In the process I added comments and changed the code slightly to
make it more readable and explicitly hint at non-obvious behavior.

Change-Id: Icc8e3b9936188d2da8dfff9f0373c8e5c776eb14
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-03-13 18:40:26 +01:00
..
android Add missing license header 2013-03-05 08:31:23 +01:00
bic/data Remove QPointerBase bic check. 2013-02-13 15:06:53 +01:00
cmake Generate a Qt5ConfigVersion.cmake file. 2013-03-13 16:07:09 +01:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
corelib Improve warning messages (and readability) of connectSlotsByName() 2013-03-13 18:40:26 +01:00
dbus Add QDBusReply::error() const. 2013-03-01 09:39:23 +01:00
gui Hide Harfbuzz from the outer world 2013-03-13 14:46:26 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix warning about unused function result in tst_qnetworkproxyfactory. 2013-03-12 09:16:42 +01:00
opengl Merge remote-tracking branch 'origin/stable' into dev 2013-03-05 13:42:11 +01:00
other Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
printsupport Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql Merge remote-tracking branch 'origin/stable' into dev 2013-02-18 16:14:52 +01:00
testlib Merge remote-tracking branch 'origin/stable' into dev 2013-01-28 11:10:29 +01:00
tools Merge remote-tracking branch 'origin/stable' into dev 2013-03-05 13:42:11 +01:00
widgets Do not list desktop widgets and desktop screen widgets as top-levels. 2013-03-12 18:13:37 +01:00
xml Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
auto.pro Check for printsupport module when building according auto tests 2013-02-19 19:20:58 +01:00
network-settings.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Fix test script 2013-02-27 18:02:22 +01:00