From 236074423cc489f039f9d81907cdcaeb2db36418 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 30 Aug 2021 18:19:47 +0200 Subject: [PATCH] QmlDesigner: Fix build Change-Id: I2ed39d84e4d83dc793dfcecbd6e34ef9d04c1e2a Reviewed-by: hjk --- src/plugins/projectexplorer/simpleprojectwizard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/simpleprojectwizard.cpp b/src/plugins/projectexplorer/simpleprojectwizard.cpp index d523a1b3e06..dda273fc754 100644 --- a/src/plugins/projectexplorer/simpleprojectwizard.cpp +++ b/src/plugins/projectexplorer/simpleprojectwizard.cpp @@ -201,7 +201,7 @@ GeneratedFiles generateQmakeFiles(const SimpleProjectWizardDialog *wizard, const QString projectPath = wizard->path(); const QDir dir(projectPath); const QString projectName = wizard->projectName(); - const FilePath proFileName = Utils::FilePath::fromFileInfo(QFileInfo(dir, projectName + ".pro").absoluteFilePath()); + const FilePath proFileName = Utils::FilePath::fromString(QFileInfo(dir, projectName + ".pro").absoluteFilePath()); const QStringList paths = Utils::transform(wizard->selectedPaths(), &FilePath::toString); MimeType headerType = Utils::mimeTypeForName("text/x-chdr"); @@ -259,7 +259,7 @@ GeneratedFiles generateCmakeFiles(const SimpleProjectWizardDialog *wizard, const QString projectPath = wizard->path(); const QDir dir(projectPath); const QString projectName = wizard->projectName(); - const FilePath projectFileName = Utils::FilePath::fromFileInfo(QFileInfo(dir, "CMakeLists.txt").absoluteFilePath()); + const FilePath projectFileName = Utils::FilePath::fromString(QFileInfo(dir, "CMakeLists.txt").absoluteFilePath()); const QStringList paths = Utils::transform(wizard->selectedPaths(), &FilePath::toString); MimeType headerType = Utils::mimeTypeForName("text/x-chdr");