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

@@ -41,7 +41,9 @@
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h>
#include <qtsupport/qtkitinformation.h>
#include <utils/algorithm.h>
#include <utils/filepath.h>
#include <utils/textutils.h>
#include <QEventLoop>
@@ -108,7 +110,7 @@ void ClangdTest::initTestCase()
.baseName().toLocal8Bit()));
QVERIFY(m_projectDir->isValid());
const auto openProjectResult = ProjectExplorerPlugin::openProject(
m_projectDir->absolutePath(m_projectFileName.toUtf8()));
Utils::FilePath::fromString(m_projectDir->absolutePath(m_projectFileName.toUtf8())));
QVERIFY2(openProjectResult, qPrintable(openProjectResult.errorMessage()));
m_project = openProjectResult.project();
m_project->configureAsExampleProject(m_kit);