summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-07-04 13:30:26 +0200
committerEike Ziller <eike.ziller@digia.com>2013-07-09 13:51:42 +0200
commitdd43d9908f3de19e455d5503b311bb3c1ae7b9c4 (patch)
treedf542f655c2380b2026d49a862c727cb0f1d86a0 /src/plugins/debugger/debuggerplugin.cpp
parentcee160225378acbc7d29665bd69f6f793ef78fb9 (diff)
downloadqt-creator-dd43d9908f3de19e455d5503b311bb3c1ae7b9c4.tar.gz
Rename IDocument::fileName --> filePath
That is what it actually is, wrt how Qt API calls it. Change-Id: Ied02055debf6aad75556b0d9d22e8ba2f72be555 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 4c54a82050..92a9b02d21 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -686,7 +686,7 @@ static bool currentTextEditorPosition(ContextData *data)
return false;
const IDocument *document = textEditor->document();
QTC_ASSERT(document, return false);
- data->fileName = document->fileName();
+ data->fileName = document->filePath();
if (textEditor->property("DisassemblerView").toBool()) {
int lineNumber = textEditor->currentLine();
QString line = textEditor->textDocument()->contents()
@@ -1862,7 +1862,7 @@ void DebuggerPluginPrivate::requestContextMenu(ITextEditor *editor,
bool contextUsable = true;
BreakpointModelId id = BreakpointModelId();
- const QString fileName = editor->document()->fileName();
+ const QString fileName = editor->document()->filePath();
if (editor->property("DisassemblerView").toBool()) {
args.fileName = fileName;
QString line = editor->textDocument()->contents()
@@ -1875,7 +1875,7 @@ void DebuggerPluginPrivate::requestContextMenu(ITextEditor *editor,
id = breakHandler()->findSimilarBreakpoint(needle);
contextUsable = args.address != 0;
} else {
- args.fileName = editor->document()->fileName();
+ args.fileName = editor->document()->filePath();
id = breakHandler()
->findBreakpointByFileAndLine(args.fileName, lineNumber);
if (!id)
@@ -1984,7 +1984,7 @@ void DebuggerPluginPrivate::toggleBreakpoint()
quint64 address = DisassemblerLine::addressFromDisassemblyLine(line);
toggleBreakpointByAddress(address);
} else if (lineNumber >= 0) {
- toggleBreakpointByFileAndLine(textEditor->document()->fileName(), lineNumber);
+ toggleBreakpointByFileAndLine(textEditor->document()->filePath(), lineNumber);
}
}
@@ -2041,7 +2041,7 @@ void DebuggerPluginPrivate::requestMark(ITextEditor *editor,
quint64 address = DisassemblerLine::addressFromDisassemblyLine(line);
toggleBreakpointByAddress(address);
} else if (editor->document()) {
- toggleBreakpointByFileAndLine(editor->document()->fileName(), lineNumber);
+ toggleBreakpointByFileAndLine(editor->document()->filePath(), lineNumber);
}
}
@@ -2130,7 +2130,7 @@ void DebuggerPluginPrivate::cleanupViews()
keepIt = false;
else if (doc->isModified())
keepIt = true;
- else if (doc->fileName().contains(_("qeventdispatcher")))
+ else if (doc->filePath().contains(_("qeventdispatcher")))
keepIt = false;
else
keepIt = (editor == EditorManager::currentEditor());
@@ -3507,7 +3507,7 @@ void DebuggerPluginPrivate::testProjectLoaded(Project *project)
void DebuggerPluginPrivate::testProjectEvaluated()
{
- QString fileName = m_testProject->document()->fileName();
+ QString fileName = m_testProject->document()->filePath();
QVERIFY(!fileName.isEmpty());
qWarning("Project %s loaded", qPrintable(fileName));
connect(ProjectExplorerPlugin::instance()->buildManager(),