MetaObject: Apply some cosmetics

Add missing white space to moc output and list all the values of
QMetaObject::Call in the internal documentation.

Change-Id: I57d0c5b88bfaee4ca3f2d4604564751b6d0cbe51
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Ulf Hermann 2023-01-31 13:52:03 +01:00
parent 0fc1f8174f
commit 2db2eb600a
2 changed files with 7 additions and 3 deletions

View File

@ -97,12 +97,16 @@ using namespace Qt::StringLiterals;
\internal
\value InvokeSlot
\value EmitSignal
\value InvokeMetaMethod
\value ReadProperty
\value WriteProperty
\value ResetProperty
\value CreateInstance
\value IndexOfMethod
\value RegisterPropertyMetaType
\value RegisterMethodArgumentMetaType
\value BindableProperty
\value CustomCall
*/
/*!

View File

@ -1282,7 +1282,7 @@ void Generator::generateStaticMetacall()
hasBindableProperties |= !p.bind.isEmpty();
}
if (needElse)
fprintf(out, "else ");
fprintf(out, " else ");
fprintf(out, "if (_c == QMetaObject::ReadProperty) {\n");
auto setupMemberAccess = [this]() {