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

@@ -41,19 +41,6 @@ using namespace TextEditor;
namespace GenericProjectManager {
namespace Internal {
//
// ProjectFilesEditor
//
class ProjectFilesEditor : public BaseTextEditor
{
public:
ProjectFilesEditor()
{
setDuplicateSupported(true);
}
};
//
// ProjectFilesFactory
//
@@ -66,7 +53,6 @@ ProjectFilesFactory::ProjectFilesFactory()
addMimeType(Constants::INCLUDES_MIMETYPE);
addMimeType(Constants::CONFIG_MIMETYPE);
setEditorCreator([]() { return new ProjectFilesEditor; });
setDocumentCreator([]() { return new BaseTextDocument(Constants::FILES_EDITOR_ID); });
setEditorActionHandlers(TextEditorActionHandler::None);
}