forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user