forked from qt-creator/qt-creator
TextEditor: Further *Editor/*EditorWidget disentangling
In most cases, the *Editor constructor does not need to access the *EditorWidget. Change-Id: I1f5c076a0f723d5d82b398e8c250c7bd1d47eb17 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -52,8 +52,7 @@ namespace Internal {
|
||||
// ProFileEditor
|
||||
//
|
||||
|
||||
ProFileEditor::ProFileEditor(ProFileEditorWidget *editor)
|
||||
: BaseTextEditor(editor)
|
||||
ProFileEditor::ProFileEditor()
|
||||
{
|
||||
setContext(Core::Context(Constants::C_PROFILEEDITOR,
|
||||
TextEditor::Constants::C_TEXTEDITOR));
|
||||
@@ -167,7 +166,7 @@ ProFileEditorWidget::Link ProFileEditorWidget::findLinkAt(const QTextCursor &cur
|
||||
|
||||
TextEditor::BaseTextEditor *ProFileEditorWidget::createEditor()
|
||||
{
|
||||
return new ProFileEditor(this);
|
||||
return new ProFileEditor;
|
||||
}
|
||||
|
||||
void ProFileEditorWidget::contextMenuEvent(QContextMenuEvent *e)
|
||||
@@ -180,7 +179,6 @@ void ProFileEditorWidget::contextMenuEvent(QContextMenuEvent *e)
|
||||
//
|
||||
|
||||
ProFileDocument::ProFileDocument()
|
||||
: TextEditor::BaseTextDocument()
|
||||
{
|
||||
setId(Constants::PROFILE_EDITOR_ID);
|
||||
setMimeType(QLatin1String(Constants::PROFILE_MIMETYPE));
|
||||
|
||||
Reference in New Issue
Block a user