From 44ffd76e8b60e3dcd0741372132b07a8f6fd8225 Mon Sep 17 00:00:00 2001 From: Leandro Melo Date: Tue, 9 Nov 2010 11:53:42 +0100 Subject: [PATCH] Snippets: Rename a method in the snippet editor. --- src/plugins/cppeditor/cppsnippeteditordecorator.cpp | 2 +- src/plugins/qmljseditor/qmljssnippeteditordecorator.cpp | 2 +- src/plugins/texteditor/snippets/snippeteditor.cpp | 2 +- src/plugins/texteditor/snippets/snippeteditor.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/cppeditor/cppsnippeteditordecorator.cpp b/src/plugins/cppeditor/cppsnippeteditordecorator.cpp index b3327a683b7..159a6c38229 100644 --- a/src/plugins/cppeditor/cppsnippeteditordecorator.cpp +++ b/src/plugins/cppeditor/cppsnippeteditordecorator.cpp @@ -62,7 +62,7 @@ void CppSnippetEditorDecorator::apply(TextEditor::SnippetEditor *editor) const const QVector &formats = fs.toTextCharFormats(CPPEditor::highlighterFormatCategories()); highlighter->setFormats(formats.constBegin(), formats.constEnd()); - editor->installSyntaxHighlighter(highlighter); + editor->setSyntaxHighlighter(highlighter); editor->setIndenter(new CppQtStyleIndenter); editor->setAutoCompleter(new CppAutoCompleter); } diff --git a/src/plugins/qmljseditor/qmljssnippeteditordecorator.cpp b/src/plugins/qmljseditor/qmljssnippeteditordecorator.cpp index 6275ca36bde..0413bdf3800 100644 --- a/src/plugins/qmljseditor/qmljssnippeteditordecorator.cpp +++ b/src/plugins/qmljseditor/qmljssnippeteditordecorator.cpp @@ -60,7 +60,7 @@ void QmlJSSnippetEditorDecorator::apply(TextEditor::SnippetEditor *editor) const Highlighter *highlighter = new Highlighter; const TextEditor::FontSettings &fs = TextEditor::TextEditorSettings::instance()->fontSettings(); highlighter->setFormats(fs.toTextCharFormats(QmlJSTextEditor::highlighterFormatCategories())); - editor->installSyntaxHighlighter(highlighter); + editor->setSyntaxHighlighter(highlighter); editor->setIndenter(new Indenter); editor->setAutoCompleter(new AutoCompleter); } diff --git a/src/plugins/texteditor/snippets/snippeteditor.cpp b/src/plugins/texteditor/snippets/snippeteditor.cpp index 714e31fb686..08a208dafa8 100644 --- a/src/plugins/texteditor/snippets/snippeteditor.cpp +++ b/src/plugins/texteditor/snippets/snippeteditor.cpp @@ -61,7 +61,7 @@ SnippetEditor::SnippetEditor(QWidget *parent) : BaseTextEditor(parent) SnippetEditor::~SnippetEditor() {} -void SnippetEditor::installSyntaxHighlighter(TextEditor::SyntaxHighlighter *highlighter) +void SnippetEditor::setSyntaxHighlighter(TextEditor::SyntaxHighlighter *highlighter) { baseTextDocument()->setSyntaxHighlighter(highlighter); } diff --git a/src/plugins/texteditor/snippets/snippeteditor.h b/src/plugins/texteditor/snippets/snippeteditor.h index 3e8af127665..dfd822f9862 100644 --- a/src/plugins/texteditor/snippets/snippeteditor.h +++ b/src/plugins/texteditor/snippets/snippeteditor.h @@ -70,7 +70,7 @@ public: SnippetEditor(QWidget *parent); virtual ~SnippetEditor(); - void installSyntaxHighlighter(SyntaxHighlighter *highlighter); + void setSyntaxHighlighter(SyntaxHighlighter *highlighter); signals: void snippetContentChanged();