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
parent
19b5520abf
commit
1ebb891c2f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue