From 1ebb891c2f9f31429e9238e31b3f4211a5118b56 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 14 Jul 2020 16:42:14 +0200 Subject: 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 --- src/tools/moc/moc.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/tools/moc') diff --git a/src/tools/moc/moc.cpp b/src/tools/moc/moc.cpp index ad9c684541..84eb751bee 100644 --- a/src/tools/moc/moc.cpp +++ b/src/tools/moc/moc.cpp @@ -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; -- cgit v1.2.3