Utils: Use FilePath::fileName() for FSEngine(BaseName) implementation

That's the terminology Qt used in the main engine.

Change-Id: Ieb6a1c3ef19c306ed64b0a530c1a956a6266b20d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-02-21 14:14:15 +01:00
parent 1ff63e90c3
commit 652d7c53ef
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ public:
return chopIfEndsWith(m_filePath.toString(), '/');
break;
case QAbstractFileEngine::BaseName:
return m_filePath.baseName();
return m_filePath.fileName();
break;
case QAbstractFileEngine::PathName:
case QAbstractFileEngine::AbsolutePathName:

View File

@@ -238,7 +238,7 @@ QString FSEngineImpl::fileName(FileName file) const
return m_filePath.toFSPathString();
break;
case QAbstractFileEngine::BaseName:
return m_filePath.baseName();
return m_filePath.fileName();
break;
case QAbstractFileEngine::PathName:
case QAbstractFileEngine::AbsolutePathName: