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:
@@ -90,6 +90,8 @@
|
||||
\sa VcsBase::VcsBaseEditorWidget
|
||||
*/
|
||||
|
||||
using namespace TextEditor;
|
||||
|
||||
namespace VcsBase {
|
||||
|
||||
/*!
|
||||
@@ -649,12 +651,14 @@ QComboBox *VcsBaseEditorWidgetPrivate::entriesComboBox()
|
||||
*/
|
||||
|
||||
VcsBaseEditorWidget::VcsBaseEditorWidget(const VcsBaseEditorParameters *type, QWidget *parent)
|
||||
: BaseTextEditorWidget(new TextEditor::BaseTextDocument, parent),
|
||||
: BaseTextEditorWidget(parent),
|
||||
d(new Internal::VcsBaseEditorWidgetPrivate(this, type))
|
||||
{
|
||||
BaseTextDocumentPtr doc(new BaseTextDocument);
|
||||
doc->setId(type->id);
|
||||
doc->setMimeType(QLatin1String(d->m_parameters->mimeType));
|
||||
setTextDocument(doc);
|
||||
viewport()->setMouseTracking(true);
|
||||
textDocument()->setId(type->id);
|
||||
textDocument()->setMimeType(QLatin1String(d->m_parameters->mimeType));
|
||||
}
|
||||
|
||||
void VcsBaseEditorWidget::setDiffFilePattern(const QRegExp &pattern)
|
||||
|
||||
Reference in New Issue
Block a user