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
fde76601
Commit
fde76601
authored
Oct 31, 2009
by
Roopesh Chander
Committed by
Thorbjørn Lindeijer
Feb 08, 2010
Browse files
enable auto-determination of spaces/tabs for cleaning whitespace as well
parent
2d9996c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetextdocument.cpp
View file @
fde76601
...
...
@@ -336,7 +336,7 @@ void BaseTextDocument::cleanWhitespace(QTextCursor& cursor, bool cleanIndentatio
}
else
{
int
column
=
m_tabSettings
.
columnAt
(
blockText
,
firstNonSpace
);
cursor
.
movePosition
(
QTextCursor
::
NextCharacter
,
QTextCursor
::
KeepAnchor
,
firstNonSpace
);
QString
indentationString
=
m_tabSettings
.
indentationString
(
0
,
column
);
QString
indentationString
=
m_tabSettings
.
indentationString
(
0
,
column
,
block
);
cursor
.
insertText
(
indentationString
);
}
}
...
...
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