diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-08-18 13:05:16 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-28 18:30:39 +0200 |
commit | a912b14c755137ed5529854027b9ab3f7e06c5e9 (patch) | |
tree | 8593866f1a795d6a3168473e75a56bcb74c920cb /src/tools/moc/generator.h | |
parent | 62c2061a501563e7f2929c5883f01955af0f2fc1 (diff) |
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>
Diffstat (limited to 'src/tools/moc/generator.h')
-rw-r--r-- | src/tools/moc/generator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/moc/generator.h b/src/tools/moc/generator.h index 873681ab88..4fa4d3440c 100644 --- a/src/tools/moc/generator.h +++ b/src/tools/moc/generator.h @@ -72,6 +72,7 @@ private: void generateSignal(FunctionDef *def, int index); void generatePluginMetaData(); QMultiMap<QByteArray, int> automaticPropertyMetaTypesHelper(); + QMap<int, QMultiMap<QByteArray, int> > methodsWithAutomaticTypesHelper(const QList<FunctionDef> &methodList); void strreg(const QByteArray &); // registers a string int stridx(const QByteArray &); // returns a string's id |