FilePathify some testing code

Change-Id: I3739a6eb3c2172078e9519e8186daf94ec74d99a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-01-12 15:30:01 +01:00
parent 2ce413112b
commit 33cdb052ba
13 changed files with 63 additions and 68 deletions

View File

@@ -391,11 +391,11 @@ ProjectOpenerAndCloser::~ProjectOpenerAndCloser()
QCoreApplication::processEvents();
}
ProjectInfo::ConstPtr ProjectOpenerAndCloser::open(const QString &projectFile,
ProjectInfo::ConstPtr ProjectOpenerAndCloser::open(const FilePath &projectFile,
bool configureAsExampleProject, Kit *kit)
{
ProjectExplorerPlugin::OpenProjectResult result =
ProjectExplorerPlugin::openProject(FilePath::fromString(projectFile));
ProjectExplorerPlugin::openProject(projectFile);
if (!result) {
qWarning() << result.errorMessage() << result.alreadyOpen();
return {};
@@ -476,9 +476,9 @@ TemporaryCopiedDir::TemporaryCopiedDir(const QString &sourceDirPath)
}
}
QString TemporaryCopiedDir::absolutePath(const QByteArray &relativePath) const
FilePath TemporaryCopiedDir::absolutePath(const QString &relativePath) const
{
return m_temporaryDir.filePath(QString::fromUtf8(relativePath)).path();
return m_temporaryDir.filePath(relativePath);
}
int clangdIndexingTimeout()