forked from qt-creator/qt-creator
TextEditors: Move indenter to document.
Change-Id: I8bdf7134562d007aa16cc63a34f5a15a708577ae Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -475,7 +475,7 @@ void CppCodeStylePreferencesWidget::updatePreview()
|
||||
QTextCursor tc = preview->textCursor();
|
||||
tc.beginEditBlock();
|
||||
while (block.isValid()) {
|
||||
preview->indenter()->indentBlock(doc, block, QChar::Null, ts);
|
||||
preview->baseTextDocument()->indenter()->indentBlock(doc, block, QChar::Null, ts);
|
||||
|
||||
block = block.next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user