TextEditor: Flip default to 'duplicatedSupported'

opt-out now, for all editors created by BaseTextEditorFactories.

Change-Id: I01d0a9ff26320fcd0b84ff90ff22c747cf84b84c
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-09-03 11:24:38 +02:00
parent 7ec74147a8
commit 4d93bb8216
12 changed files with 10 additions and 55 deletions

View File

@@ -51,23 +51,6 @@ using namespace TextEditor;
namespace QmakeProjectManager {
namespace Internal {
//
// ProFileEditor
//
class ProFileEditor : public TextEditor::BaseTextEditor
{
public:
ProFileEditor()
{
setDuplicateSupported(true);
}
};
//
// ProFileEditorWidget
//
class ProFileEditorWidget : public BaseTextEditorWidget
{
public:
@@ -227,7 +210,6 @@ ProFileEditorFactory::ProFileEditorFactory()
setDocumentCreator([]() { return new ProFileDocument; });
setEditorWidgetCreator([]() { return new ProFileEditorWidget; });
setEditorCreator([]() { return new ProFileEditor; });
setCommentStyle(Utils::CommentDefinition::HashStyle);
setEditorActionHandlers(TextEditorActionHandler::UnCommentSelection