Core: replace QString with Utils::FilePath to get documents

Change-Id: I01777c227398be8bd3bf877c5429b84a75aa361b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2020-09-02 12:06:51 +02:00
parent e4dec0484c
commit 339db00f85
15 changed files with 33 additions and 34 deletions

View File

@@ -246,7 +246,7 @@ QString StateListener::windowTitleVcsTopic(const QString &filePath)
static inline QString displayNameOfEditor(const QString &fileName)
{
IDocument *document = DocumentModel::documentForFilePath(fileName);
IDocument *document = DocumentModel::documentForFilePath(FilePath::fromString(fileName));
if (document)
return document->displayName();
return QString();