forked from qt-creator/qt-creator
TextEditor: Merge the two sets of *EditorWidget constructors
Change-Id: I45d87d0be722ac36d64af222f03f8cb76242c9df Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -101,8 +101,9 @@ private:
|
||||
};
|
||||
|
||||
DescriptionEditorWidget::DescriptionEditorWidget(QWidget *parent)
|
||||
: BaseTextEditorWidget(new BaseTextDocument, parent)
|
||||
: BaseTextEditorWidget(parent)
|
||||
{
|
||||
setTextDocument(BaseTextDocumentPtr(new BaseTextDocument));
|
||||
DisplaySettings settings = displaySettings();
|
||||
settings.m_textWrapping = false;
|
||||
settings.m_displayLineNumbers = false;
|
||||
|
||||
@@ -36,8 +36,9 @@
|
||||
namespace DiffEditor {
|
||||
|
||||
SelectableTextEditorWidget::SelectableTextEditorWidget(QWidget *parent)
|
||||
: BaseTextEditorWidget(new TextEditor::BaseTextDocument, parent)
|
||||
: BaseTextEditorWidget(parent)
|
||||
{
|
||||
setTextDocument(TextEditor::BaseTextDocumentPtr(new TextEditor::BaseTextDocument));
|
||||
setFrameStyle(QFrame::NoFrame);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user