Commit 11002691 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.model: relax checks for ids

id: list
id: on
etc. are actually allowed.

We should rely on the parser for this kind of checks anyway.

Task-number: QTCREATORBUG-3347
parent 0c400389
...@@ -163,8 +163,7 @@ QString ModelNode::validId() ...@@ -163,8 +163,7 @@ QString ModelNode::validId()
static bool idIsQmlKeyWord(const QString& id) static bool idIsQmlKeyWord(const QString& id)
{ {
QStringList keywords; QStringList keywords;
keywords << "import" << "property" << "signal" keywords << "import" << "as";
<< "as" << "on" << "list";
return keywords.contains(id); return keywords.contains(id);
} }
......
Supports Markdown
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