From d66acb51d0c8b511df9f679806cbd3d84cce41ef Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 14 Feb 2012 16:43:51 +0100 Subject: Rename IFile->IDocument and FileManager->DocumentManager And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King Reviewed-by: Eike Ziller --- src/plugins/debugger/debuggertooltipmanager.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/plugins/debugger/debuggertooltipmanager.cpp') diff --git a/src/plugins/debugger/debuggertooltipmanager.cpp b/src/plugins/debugger/debuggertooltipmanager.cpp index 1a8de6ee43..3271760716 100644 --- a/src/plugins/debugger/debuggertooltipmanager.cpp +++ b/src/plugins/debugger/debuggertooltipmanager.cpp @@ -210,26 +210,26 @@ class DebuggerToolTipEditor { public: explicit DebuggerToolTipEditor(IEditor *ie = 0); - bool isValid() const { return textEditor && baseTextEditor && file; } + bool isValid() const { return textEditor && baseTextEditor && document; } operator bool() const { return isValid(); } - QString fileName() const { return file ? file->fileName() : QString(); } + QString fileName() const { return document ? document->fileName() : QString(); } static DebuggerToolTipEditor currentToolTipEditor(); ITextEditor *textEditor; BaseTextEditorWidget *baseTextEditor; - IFile *file; + IDocument *document; }; DebuggerToolTipEditor::DebuggerToolTipEditor(IEditor *ie) : - textEditor(0), baseTextEditor(0), file(0) + textEditor(0), baseTextEditor(0), document(0) { - if (ie && ie->file() && isEditorDebuggable(ie)) { + if (ie && ie->document() && isEditorDebuggable(ie)) { if (ITextEditor *te = qobject_cast(ie)) { if (BaseTextEditorWidget *pe = qobject_cast(ie->widget())) { textEditor = te; baseTextEditor = pe; - file = ie->file(); + document = ie->document(); } } } @@ -552,9 +552,9 @@ DebuggerToolTipContext::DebuggerToolTipContext() : position(0), line(0), column( DebuggerToolTipContext DebuggerToolTipContext::fromEditor(IEditor *ie, int pos) { DebuggerToolTipContext rc; - if (const IFile *file = ie->file()) { + if (const IDocument *document = ie->document()) { if (const ITextEditor *te = qobject_cast(ie)) { - rc.fileName = file->fileName(); + rc.fileName = document->fileName(); rc.position = pos; te->convertPosition(pos, &rc.line, &rc.column); } -- cgit v1.2.1