Fix moc generating invalid code for slots with reference types as argument.
authorVolker Krause <volker.krause@kdab.com>
Sun, 2 Sep 2012 14:30:47 +0000 (16:30 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sun, 2 Sep 2012 21:41:42 +0000 (23:41 +0200)
commit8c1cb66712a339b09988d8ef2b15ce39678178a6
tree0b3214586a36223c508ffc7b0e1c2eb7dc11e9cf
parent9d4814e18b9c243340f492f8b7ddd19b523b229f
Fix moc generating invalid code for slots with reference types as argument.

We can't have T& declared/registered as a metatype (wont compile), but
using it as type for a slot argument is possible. With the recent
introduction of metatype auto-registration we have to make sure that moc
doesn't attempt to auto-register those. Simple types are handled correctly
already, this fixes containers and smart pointers.

Change-Id: Id96857c57d6ebf158a67e9d527c89dc195473b1b
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/tools/moc/generator.cpp
tests/auto/tools/moc/tst_moc.cpp