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

@@ -350,7 +350,7 @@ void ProjectTreeWidget::rowsInserted(const QModelIndex &parent, int start, int e
}
}
Node *ProjectTreeWidget::nodeForFile(const FileName &fileName)
Node *ProjectTreeWidget::nodeForFile(const FilePath &fileName)
{
Node *bestNode = nullptr;
int bestNodeExpandCount = INT_MAX;
@@ -457,7 +457,7 @@ void ProjectTreeWidget::editCurrentItem()
editor->setSelection(0, dotIndex);
}
void ProjectTreeWidget::renamed(const FileName &oldPath, const FileName &newPath)
void ProjectTreeWidget::renamed(const FilePath &oldPath, const FilePath &newPath)
{
update();
Q_UNUSED(oldPath);
@@ -474,7 +474,7 @@ void ProjectTreeWidget::renamed(const FileName &oldPath, const FileName &newPath
void ProjectTreeWidget::syncFromDocumentManager()
{
// sync from document manager
FileName fileName;
FilePath fileName;
if (IDocument *doc = EditorManager::currentDocument())
fileName = doc->filePath();
if (!currentNode() || currentNode()->filePath() != fileName)