summaryrefslogtreecommitdiffstats
path: root/src/tools/moc
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-07-14 16:42:14 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-07-15 12:44:30 +0200
commit1ebb891c2f9f31429e9238e31b3f4211a5118b56 (patch)
treefd9b1398c061ef997f0f73dd6b2290a13a0a48d1 /src/tools/moc
parent19b5520abfb5f66d4b83c7a18cc72d68673d098a (diff)
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>
Diffstat (limited to 'src/tools/moc')
-rw-r--r--src/tools/moc/moc.cpp2
1 files changed, 0 insertions, 2 deletions
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;