Skip to content

Commit

Permalink
moc: Accept NAME attribute for any properties
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Ulf Hermann committed Jul 15, 2020
1 parent 19b5520 commit 1ebb891
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/tools/moc/moc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1ebb891

Please sign in to comment.