diff options
author | hjk <hjk121@nokiamail.com> | 2014-05-08 16:07:24 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-05-21 14:29:00 +0200 |
commit | 3462c5ef4256a5513f0b5f390fd6278d57d7caee (patch) | |
tree | c1ad65a6eda7af8800664389fb796db6defc98f9 /src/plugins/texteditor | |
parent | b739ad38d453689ceea95bf6dbf653829c07012b (diff) | |
download | qt-creator-3462c5ef4256a5513f0b5f390fd6278d57d7caee.tar.gz |
IEditor: Make duplicatesSupported a value member
Change-Id: Iee75dd4155d5074bb319df79d006b6d5e2989e14
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/texteditor')
-rw-r--r-- | src/plugins/texteditor/plaintexteditor.cpp | 1 | ||||
-rw-r--r-- | src/plugins/texteditor/plaintexteditor.h | 1 | ||||
-rw-r--r-- | src/plugins/texteditor/snippets/snippeteditor.h | 1 |
3 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp index a66a042075..4fb935ea67 100644 --- a/src/plugins/texteditor/plaintexteditor.cpp +++ b/src/plugins/texteditor/plaintexteditor.cpp @@ -65,6 +65,7 @@ PlainTextEditor::PlainTextEditor(PlainTextEditorWidget *editor) { setContext(Core::Context(Core::Constants::K_DEFAULT_TEXT_EDITOR_ID, TextEditor::Constants::C_TEXTEDITOR)); + setDuplicateSupported(true); } PlainTextEditorWidget::PlainTextEditorWidget(QWidget *parent) diff --git a/src/plugins/texteditor/plaintexteditor.h b/src/plugins/texteditor/plaintexteditor.h index fa3cd99014..99471cbc5e 100644 --- a/src/plugins/texteditor/plaintexteditor.h +++ b/src/plugins/texteditor/plaintexteditor.h @@ -47,7 +47,6 @@ class TEXTEDITOR_EXPORT PlainTextEditor : public BaseTextEditor public: PlainTextEditor(PlainTextEditorWidget *); - bool duplicateSupported() const { return true; } Core::IEditor *duplicate(); }; diff --git a/src/plugins/texteditor/snippets/snippeteditor.h b/src/plugins/texteditor/snippets/snippeteditor.h index 47a4078b4c..7f1072552b 100644 --- a/src/plugins/texteditor/snippets/snippeteditor.h +++ b/src/plugins/texteditor/snippets/snippeteditor.h @@ -48,7 +48,6 @@ class TEXTEDITOR_EXPORT SnippetEditor : public BaseTextEditor public: SnippetEditor(SnippetEditorWidget *editorWidget); - bool duplicateSupported() const { return false; } Core::IEditor *duplicate() { return 0; } }; |