diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp index 74060a2e2e7e5ada62295401e1e949759d314101..ea1a0b0a2c22ff8439216c0aebdd782f547f3546 100644 --- a/src/plugins/texteditor/plaintexteditor.cpp +++ b/src/plugins/texteditor/plaintexteditor.cpp @@ -63,7 +63,8 @@ PlainTextEditorEditable::PlainTextEditorEditable(PlainTextEditor *editor) PlainTextEditor::PlainTextEditor(QWidget *parent) : BaseTextEditor(parent), m_isMissingSyntaxDefinition(false), - m_ignoreMissingSyntaxDefinition(false) + m_ignoreMissingSyntaxDefinition(false), + m_indenter(new NormalIndenter) // Currently only "normal" indentation is supported. { setRevisionsVisible(true); setMarksVisible(true); @@ -199,11 +200,6 @@ void PlainTextEditor::configure(const Core::MimeType &mimeType) setFontSettings(TextEditorSettings::instance()->fontSettings()); - // @todo: Indentation specification through the definition files is not really being used - // because Kate recommends to configure indentation through another feature. Maybe we should - // provide something similar in Creator? For now, only normal indentation is supported. - m_indenter.reset(new NormalIndenter); - emit configured(editableInterface()); } diff --git a/src/plugins/texteditor/plaintexteditor.h b/src/plugins/texteditor/plaintexteditor.h index 7d7917ff9f38ae962ffad71cdfb48f657966b347..45ae953271a114327ea71ab5bc3c482080edad30 100644 --- a/src/plugins/texteditor/plaintexteditor.h +++ b/src/plugins/texteditor/plaintexteditor.h @@ -96,8 +96,8 @@ private: bool m_isMissingSyntaxDefinition; bool m_ignoreMissingSyntaxDefinition; - Utils::CommentDefinition m_commentDefinition; QScopedPointer<Indenter> m_indenter; + Utils::CommentDefinition m_commentDefinition; }; } // namespace TextEditor