moc: Accept NAME attribute for any properties

At the time when we parse it we don't know if the property will be a
QProperty.

Change-Id: I720afa6d5ec284c727328db92c791771def82f41
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
bb10
Ulf Hermann 2020-07-14 16:42:14 +02:00
parent 19b5520abf
commit 1ebb891c2f
1 changed files with 0 additions and 2 deletions

View File

@ -1318,8 +1318,6 @@ void Moc::parsePropertyAttributes(PropertyDef &propDef)
propDef.final = true;
continue;
} else if (l[0] == 'N' && l == "NAME") {
if (!propDef.isQProperty)
error(1);
next(IDENTIFIER);
propDef.name = lexem();
continue;