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
Marco Bubke
flatpak-qt-creator
Commits
ea9dc164
Commit
ea9dc164
authored
Jan 13, 2010
by
Roberto Raggi
Browse files
Fixed indentation of QML/JS function calls.
parent
e3e4f1b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/qscripthighlighter/qscriptindenter.cpp
View file @
ea9dc164
...
...
@@ -653,8 +653,10 @@ bool QScriptIndenter::isUnfinishedLine()
It doesn't end with ';' or similar. If it's neither
"Q_OBJECT" nor "if (x)", it must be an unfinished line.
*/
unf
=
(
yyLine
->
indexOf
(
QLatin1String
(
"Q_OBJECT"
))
==
-
1
&&
!
matchBracelessControlStatement
());
unf
=
!
matchBracelessControlStatement
();
if
(
unf
&&
lastCh
==
QLatin1Char
(
')'
))
unf
=
false
;
}
else
if
(
lastCh
==
QLatin1Char
(
';'
))
{
if
(
lastParen
(
*
yyLine
)
==
QLatin1Char
(
'('
))
{
/*
...
...
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