summaryrefslogtreecommitdiff
path: root/src/plugins/locator
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/locator
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/locator')
-rw-r--r--src/plugins/locator/filesystemfilter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/locator/filesystemfilter.cpp b/src/plugins/locator/filesystemfilter.cpp
index 4e7af5c91b..7e34602abb 100644
--- a/src/plugins/locator/filesystemfilter.cpp
+++ b/src/plugins/locator/filesystemfilter.cpp
@@ -59,8 +59,8 @@ QList<FilterEntry> FileSystemFilter::matchesFor(QFutureInterface<Locator::Filter
directory.replace(0, 1, QDir::homePath());
} else {
IEditor *editor = EditorManager::currentEditor();
- if (editor && !editor->document()->fileName().isEmpty()) {
- QFileInfo info(editor->document()->fileName());
+ if (editor && !editor->document()->filePath().isEmpty()) {
+ QFileInfo info(editor->document()->filePath());
directory.prepend(info.absolutePath() + QLatin1Char('/'));
}
}