forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user