Commit 62e3e873 authored by Jochen Becher's avatar Jochen Becher Committed by Tobias Hunger

ModelEditor: Fix endless loop with class members

Using Q_INVOKABLE in class members led to endless loop. 
Other qualifiers like Q_SLOT or virtual do work.

Task-number: QTCREATORBUG-15347
Change-Id: Id25ee7970b49ed815a86fa76af6cbb3a06405971
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 1ed73ea3
......@@ -530,6 +530,7 @@ QList<MClassMember> ClassMembersEdit::parse(const QString &text, bool *ok)
word = cursor.readWord().toLower();
} else if (word == QStringLiteral("invokable") || word == QStringLiteral("q_invokable")) {
member.setProperties(member.getProperties() | MClassMember::PROPERTY_QINVOKABLE);
word = cursor.readWord().toLower();
} else if (word == QStringLiteral(":")) {
word = cursor.readWord().toLower();
} else {
......
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