Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
ea767a4f
Commit
ea767a4f
authored
Dec 06, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.model: leading '_' is allowed for ids
parent
b39be67c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/model/modelnode.cpp
View file @
ea767a4f
...
...
@@ -171,7 +171,7 @@ static bool idIsQmlKeyWord(const QString& id)
static
bool
idContainsWrongLetter
(
const
QString
&
id
)
{
static
QRegExp
idExpr
(
QLatin1String
(
"[a-z][a-zA-Z0-9_]*"
));
static
QRegExp
idExpr
(
QLatin1String
(
"[a-z
_
][a-zA-Z0-9_]*"
));
return
!
idExpr
.
exactMatch
(
id
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment