ProjectExplorer: Use FilePath in ProjectExplorer::openProject{,s}()

Change-Id: Ibfb7ab5ef7226b85452bd37b840408708935453b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-07-16 17:31:41 +02:00
parent 2b4f5749ab
commit 9b250ea2c0
12 changed files with 58 additions and 54 deletions

View File

@@ -1312,8 +1312,7 @@ void ProjectExplorerPlugin::testProject_multipleBuildConfigs()
const QFileInfoList files = QDir(projectDir.toString()).entryInfoList(QDir::Files | QDir::Dirs);
for (const QFileInfo &f : files)
QFile(f.absoluteFilePath()).setPermissions(f.permissions() | QFile::WriteUser);
const auto theProject = openProject(projectDir.pathAppended("generic-project.creator")
.toString());
const auto theProject = openProject(projectDir.pathAppended("generic-project.creator"));
QVERIFY2(theProject, qPrintable(theProject.errorMessage()));
theProject.project()->configureAsExampleProject(kit);
QCOMPARE(theProject.project()->targets().size(), 1);