forked from qt-creator/qt-creator
TextEditors: Remove tabSettings() from widget
It's part of the document. Change-Id: I7288b09a0792fdae9c741016594e129f6b21f8e7 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -1704,9 +1704,9 @@ void FakeVimPluginPrivate::setUseFakeVimInternal(bool on)
|
||||
// Context(FAKEVIM_CONTEXT));
|
||||
resetCommandBuffer();
|
||||
foreach (IEditor *editor, m_editorToHandler.keys()) {
|
||||
if (BaseTextEditorWidget *textEditor =
|
||||
qobject_cast<BaseTextEditorWidget *>(editor->widget())) {
|
||||
m_editorToHandler[editor]->restoreWidget(textEditor->tabSettings().m_tabSize);
|
||||
if (BaseTextDocument *textDocument =
|
||||
qobject_cast<BaseTextDocument *>(editor->document())) {
|
||||
m_editorToHandler[editor]->restoreWidget(textDocument->tabSettings().m_tabSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user