summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/snippets/snippeteditor.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-11-08 11:42:07 +0100
committerLeandro Melo <leandro.melo@nokia.com>2010-12-08 17:22:08 +0100
commitde527d060dcbef0ad66c98d14c621a116f1123a0 (patch)
tree3b2653b17e780be40920d31013461df48f0b5947 /src/plugins/texteditor/snippets/snippeteditor.cpp
parent920967d90108608e2721d3197ad684a7cd8450fa (diff)
downloadqt-creator-de527d060dcbef0ad66c98d14c621a116f1123a0.tar.gz
Snippets: Set indenters.
Diffstat (limited to 'src/plugins/texteditor/snippets/snippeteditor.cpp')
-rw-r--r--src/plugins/texteditor/snippets/snippeteditor.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/plugins/texteditor/snippets/snippeteditor.cpp b/src/plugins/texteditor/snippets/snippeteditor.cpp
index cf40373bfe..ca59955252 100644
--- a/src/plugins/texteditor/snippets/snippeteditor.cpp
+++ b/src/plugins/texteditor/snippets/snippeteditor.cpp
@@ -50,12 +50,9 @@ QString SnippetEditorEditable::id() const
return Constants::SNIPPET_EDITOR_ID;
}
-SnippetEditor::SnippetEditor(QWidget *parent) :
- BaseTextEditor(parent),
- m_indenter(new NormalIndenter)
+SnippetEditor::SnippetEditor(QWidget *parent) : BaseTextEditor(parent)
{
setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
-
setHighlightCurrentLine(false);
setLineNumbersVisible(false);
}
@@ -68,11 +65,6 @@ void SnippetEditor::installSyntaxHighlighter(TextEditor::SyntaxHighlighter *high
baseTextDocument()->setSyntaxHighlighter(highlighter);
}
-void SnippetEditor::installIndenter(Indenter *indenter)
-{
- m_indenter.reset(indenter);
-}
-
void SnippetEditor::focusOutEvent(QFocusEvent *event)
{
Q_UNUSED(event);
@@ -84,9 +76,3 @@ BaseTextEditorEditable *SnippetEditor::createEditableInterface()
{
return new SnippetEditorEditable(this);
}
-
-void SnippetEditor::indentBlock(QTextDocument *doc, QTextBlock block, QChar typedChar)
-{
- if (!m_indenter.isNull())
- m_indenter->indentBlock(doc, block, typedChar, tabSettings());
-}