forked from qt-creator/qt-creator
TextEditor: Consolidate document access functions.
There was document(), textDocument() and baseTextDocument(). Two should be enough... Change-Id: Id9e41c8d857c5cb3269a9fce5ab594d34448c982 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -120,8 +120,6 @@ public:
|
||||
BaseTextEditor(BaseTextEditorWidget *editorWidget);
|
||||
~BaseTextEditor();
|
||||
|
||||
virtual BaseTextDocument *textDocument();
|
||||
|
||||
enum MarkRequestKind {
|
||||
BreakpointRequest,
|
||||
BookmarkRequest,
|
||||
@@ -131,7 +129,7 @@ public:
|
||||
static BaseTextEditor *currentTextEditor();
|
||||
|
||||
BaseTextEditorWidget *editorWidget() const;
|
||||
BaseTextDocument *baseTextDocument();
|
||||
BaseTextDocument *textDocument();
|
||||
|
||||
// IEditor
|
||||
Core::IDocument *document();
|
||||
@@ -218,7 +216,7 @@ public:
|
||||
BaseTextEditorWidget(BaseTextEditorWidget *other);
|
||||
~BaseTextEditorWidget();
|
||||
|
||||
BaseTextDocument *baseTextDocument() const;
|
||||
BaseTextDocument *textDocument() const;
|
||||
|
||||
// IEditor
|
||||
virtual bool open(QString *errorString, const QString &fileName, const QString &realFileName);
|
||||
|
||||
Reference in New Issue
Block a user