Skip to content
GitLab
Menu
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
80a46231
Commit
80a46231
authored
Sep 04, 2009
by
Roberto Raggi
Browse files
Fixed QML indenter.
parent
e2c06d5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/duieditor/duieditor.cpp
View file @
80a46231
...
...
@@ -622,6 +622,10 @@ void ScriptEditor::indentBlock(QTextDocument *, QTextBlock block, QChar typedCha
||
((
typedChar
==
QChar
::
Null
)
&&
block
.
text
().
trimmed
()
==
"}"
))
{
QTextCursor
tc
(
block
);
if
(
typedChar
==
QLatin1Char
(
'}'
)
tc
=
textCursor
();
if
(
TextEditor
::
TextBlockUserData
::
findPreviousBlockOpenParenthesis
(
&
tc
))
{
const
QString
text
=
tc
.
block
().
text
();
int
indent
=
ts
.
columnAt
(
text
,
ts
.
firstNonSpace
(
text
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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