Commit 81f7fc2e authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix reading enumerators from Qml type description.

Previously, the actual enumerator values weren't read correctly.
parent 81e74d23
......@@ -513,7 +513,6 @@ private:
}
FakeMetaEnum metaEnum(name);
metaObject->addEnum(metaEnum);
while (_xml.readNextStartElement()) {
if (_xml.name() == QLatin1String("enumerator"))
......@@ -521,6 +520,8 @@ private:
else
unexpectedElement(_xml.name(), tag);
}
metaObject->addEnum(metaEnum);
}
void readEnumerator(FakeMetaEnum *metaEnum)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment