diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2012-02-14 16:43:51 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-02-20 13:32:49 +0100 |
commit | d66acb51d0c8b511df9f679806cbd3d84cce41ef (patch) | |
tree | 58289c9e7f7bc6107b4d620fad791a206d097555 /src/plugins/debugger/watchutils.cpp | |
parent | 266da3568d2db185f67227d38e29cd20d28fb2bd (diff) | |
download | qt-creator-d66acb51d0c8b511df9f679806cbd3d84cce41ef.tar.gz |
Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively.
Change-Id: I1e04e555409be09242db6890f9e013396f83aeed
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/debugger/watchutils.cpp')
-rw-r--r-- | src/plugins/debugger/watchutils.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/debugger/watchutils.cpp b/src/plugins/debugger/watchutils.cpp index 7007a1133c..d95834e481 100644 --- a/src/plugins/debugger/watchutils.cpp +++ b/src/plugins/debugger/watchutils.cpp @@ -36,7 +36,7 @@ #include <utils/qtcassert.h> -#include <coreplugin/ifile.h> +#include <coreplugin/idocument.h> #include <texteditor/basetexteditor.h> #include <texteditor/basetextmark.h> @@ -151,7 +151,7 @@ bool isEditorDebuggable(Core::IEditor *editor) { // Only blacklist Qml. Whitelisting would fail on C++ code in files // with strange names, more harm would be done this way. - // IFile *file = editor->file(); + // IDocument *file = editor->document(); // return !(file && file->mimeType() == "application/x-qml"); // Nowadays, even Qml is debuggable. return editor; @@ -442,9 +442,9 @@ bool getUninitializedVariables(const CPlusPlus::Snapshot &snapshot, QByteArray gdbQuoteTypes(const QByteArray &type) { - // gdb does not understand sizeof(Core::IFile*). - // "sizeof('Core::IFile*')" is also not acceptable, - // it needs to be "sizeof('Core::IFile'*)" + // gdb does not understand sizeof(Core::IDocument*). + // "sizeof('Core::IDocument*')" is also not acceptable, + // it needs to be "sizeof('Core::IDocument'*)" // // We never will have a perfect solution here (even if we had a full blown // C++ parser as we do not have information on what is a type and what is @@ -647,10 +647,10 @@ QString decodeData(const QByteArray &ba, int encoding) bool isCppEditor(Core::IEditor *editor) { using namespace CppTools::Constants; - const Core::IFile *file = editor->file(); - if (!file) + const Core::IDocument *document= editor->document(); + if (!document) return false; - const QByteArray mimeType = file->mimeType().toLatin1(); + const QByteArray mimeType = document->mimeType().toLatin1(); return mimeType == C_SOURCE_MIMETYPE || mimeType == CPP_SOURCE_MIMETYPE || mimeType == CPP_HEADER_MIMETYPE @@ -693,10 +693,10 @@ QString cppExpressionAt(TextEditor::ITextEditor *editor, int pos, } if (function && !expr.isEmpty()) - if (const Core::IFile *file = editor->file()) + if (const Core::IDocument *document= editor->document()) if (modelManager) *function = AbstractEditorSupport::functionAt(modelManager, - file->fileName(), *line, *column); + document->fileName(), *line, *column); return expr; } |