Utils: Rename FileName to FilePath

More in line with QFileInfo terminonlogy which appears to be
best-of-breed within Qt.

Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-05-28 13:49:26 +02:00
parent 4704f49fbb
commit 473a741c9f
688 changed files with 3487 additions and 3484 deletions

View File

@@ -240,7 +240,7 @@ void LanguageClientManager::applySettings()
case BaseSettings::RequiresProject: {
for (Core::IDocument *doc : Core::DocumentModel::openedDocuments()) {
if (setting->m_languageFilter.isSupported(doc)) {
const Utils::FileName filePath = doc->filePath();
const Utils::FilePath filePath = doc->filePath();
for (ProjectExplorer::Project *project :
ProjectExplorer::SessionManager::projects()) {
if (project->isKnownFile(filePath))
@@ -376,7 +376,7 @@ void LanguageClientManager::documentOpened(Core::IDocument *document)
if (setting->isValid() && setting->m_enabled
&& setting->m_languageFilter.isSupported(document)) {
if (setting->m_startBehavior == BaseSettings::RequiresProject) {
const Utils::FileName filePath = document->filePath();
const Utils::FilePath filePath = document->filePath();
for (ProjectExplorer::Project *project :
ProjectExplorer::SessionManager::projects()) {
// check whether file is part of this project
@@ -421,7 +421,7 @@ void LanguageClientManager::documentWillSave(Core::IDocument *document)
interface->documentContentsSaved(document);
}
void LanguageClientManager::findLinkAt(const Utils::FileName &filePath,
void LanguageClientManager::findLinkAt(const Utils::FilePath &filePath,
const QTextCursor &cursor,
Utils::ProcessLinkCallback callback)
{
@@ -485,7 +485,7 @@ QList<Core::SearchResultItem> generateSearchResultItems(const LanguageClientArra
return result;
}
void LanguageClientManager::findUsages(const Utils::FileName &filePath, const QTextCursor &cursor)
void LanguageClientManager::findUsages(const Utils::FilePath &filePath, const QTextCursor &cursor)
{
const DocumentUri uri = DocumentUri::fromFileName(filePath);
const TextDocumentIdentifier document(uri);