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
84344041
Commit
84344041
authored
Mar 23, 2010
by
Erik Verbruggen
Browse files
Removed superfluous indenting while rewriting QML one-liners;
parent
36a9d8a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/core/filemanager/addpropertyvisitor.cpp
View file @
84344041
...
...
@@ -150,6 +150,7 @@ void AddPropertyVisitor::addInMembers(QmlJS::AST::UiObjectInitializer *initializ
newPropertyTemplate
.
prepend
(
QLatin1Char
(
' '
));
if
(
needsTrailingSemicolon
)
newPropertyTemplate
.
append
(
QLatin1Char
(
';'
));
depth
=
0
;
}
else
{
newPropertyTemplate
.
prepend
(
QLatin1Char
(
'\n'
));
}
...
...
src/plugins/qmldesigner/core/filemanager/qmlrewriter.cpp
View file @
84344041
...
...
@@ -98,6 +98,9 @@ unsigned QMLRewriter::calculateIndentDepth(const SourceLocation &position) const
QString
QMLRewriter
::
addIndentation
(
const
QString
&
text
,
unsigned
depth
)
{
if
(
depth
==
0
)
return
text
;
const
QString
indentation
(
depth
,
QLatin1Char
(
' '
));
if
(
text
.
isEmpty
())
...
...
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