diff options
author | hjk <qtc-committer@nokia.com> | 2011-02-21 16:02:26 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2011-02-22 11:23:53 +0100 |
commit | f576ad9f2c169bfa4d336ba2b3b1918f03df6916 (patch) | |
tree | f9e708ea1972b10d5465c915e7b9d0f7572f671f /src/plugins/texteditor/snippets/snippeteditor.cpp | |
parent | e32cf192f7ba34dda96b61507b440c6a17b51a0c (diff) | |
download | qt-creator-f576ad9f2c169bfa4d336ba2b3b1918f03df6916.tar.gz |
texteditor: merge ITextEditable into ITextEditor
rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor
rename BaseTextEditor{,Widget} subclasses
rename editableInterface->editorInterface
rename createEditableInterface->createEditor
minor cleanups after renamings
Diffstat (limited to 'src/plugins/texteditor/snippets/snippeteditor.cpp')
-rw-r--r-- | src/plugins/texteditor/snippets/snippeteditor.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/texteditor/snippets/snippeteditor.cpp b/src/plugins/texteditor/snippets/snippeteditor.cpp index 5e5dffb786..92c1b05344 100644 --- a/src/plugins/texteditor/snippets/snippeteditor.cpp +++ b/src/plugins/texteditor/snippets/snippeteditor.cpp @@ -42,20 +42,20 @@ using namespace TextEditor; -SnippetEditorEditable::SnippetEditorEditable(SnippetEditor *editor) : - BaseTextEditorEditable(editor), +SnippetEditor::SnippetEditor(SnippetEditorWidget *editor) : + BaseTextEditor(editor), m_context(Constants::SNIPPET_EDITOR_ID, Constants::C_TEXTEDITOR) {} -SnippetEditorEditable::~SnippetEditorEditable() +SnippetEditor::~SnippetEditor() {} -QString SnippetEditorEditable::id() const +QString SnippetEditor::id() const { return Constants::SNIPPET_EDITOR_ID; } -SnippetEditor::SnippetEditor(QWidget *parent) : BaseTextEditor(parent) +SnippetEditorWidget::SnippetEditorWidget(QWidget *parent) : BaseTextEditorWidget(parent) { setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); setHighlightCurrentLine(false); @@ -63,15 +63,15 @@ SnippetEditor::SnippetEditor(QWidget *parent) : BaseTextEditor(parent) setParenthesesMatchingEnabled(true); } -SnippetEditor::~SnippetEditor() +SnippetEditorWidget::~SnippetEditorWidget() {} -void SnippetEditor::setSyntaxHighlighter(TextEditor::SyntaxHighlighter *highlighter) +void SnippetEditorWidget::setSyntaxHighlighter(TextEditor::SyntaxHighlighter *highlighter) { baseTextDocument()->setSyntaxHighlighter(highlighter); } -void SnippetEditor::focusOutEvent(QFocusEvent *event) +void SnippetEditorWidget::focusOutEvent(QFocusEvent *event) { if (event->reason() != Qt::ActiveWindowFocusReason && document()->isModified()) { document()->setModified(false); @@ -79,7 +79,7 @@ void SnippetEditor::focusOutEvent(QFocusEvent *event) } } -BaseTextEditorEditable *SnippetEditor::createEditableInterface() +BaseTextEditor *SnippetEditorWidget::createEditor() { - return new SnippetEditorEditable(this); + return new SnippetEditor(this); } |