aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/snippets/snippeteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/snippets/snippeteditor.cpp')
-rw-r--r--src/plugins/texteditor/snippets/snippeteditor.cpp20
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);
}