Add automatic metatype registration for invokable methods.
authorStephen Kelly <stephen.kelly@kdab.com>
Sat, 18 Aug 2012 11:05:16 +0000 (13:05 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Aug 2012 16:30:39 +0000 (18:30 +0200)
commita912b14c755137ed5529854027b9ab3f7e06c5e9
tree8593866f1a795d6a3168473e75a56bcb74c920cb
parent62c2061a501563e7f2929c5883f01955af0f2fc1
Add automatic metatype registration for invokable methods.

This works similarly to the automatic registration for Q_PROPERTY types,
but in this case it mostly affects the need for users to
call qRegisterMetaType<T>() before using queued connections
with methods using non-built-in metatypes, or before using invokeMethod
manually.

Change-Id: Ib17d0606b77b0130624b6a88b57c36d26e97d12d
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/corelib/kernel/qmetaobject.cpp
src/corelib/kernel/qobjectdefs.h
src/tools/moc/generator.cpp
src/tools/moc/generator.h
tests/auto/tools/moc/tst_moc.cpp