forked from qt-creator/qt-creator
QmlDesigner: Fix build
Change-Id: I2ed39d84e4d83dc793dfcecbd6e34ef9d04c1e2a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -201,7 +201,7 @@ GeneratedFiles generateQmakeFiles(const SimpleProjectWizardDialog *wizard,
|
|||||||
const QString projectPath = wizard->path();
|
const QString projectPath = wizard->path();
|
||||||
const QDir dir(projectPath);
|
const QDir dir(projectPath);
|
||||||
const QString projectName = wizard->projectName();
|
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);
|
const QStringList paths = Utils::transform(wizard->selectedPaths(), &FilePath::toString);
|
||||||
|
|
||||||
MimeType headerType = Utils::mimeTypeForName("text/x-chdr");
|
MimeType headerType = Utils::mimeTypeForName("text/x-chdr");
|
||||||
@@ -259,7 +259,7 @@ GeneratedFiles generateCmakeFiles(const SimpleProjectWizardDialog *wizard,
|
|||||||
const QString projectPath = wizard->path();
|
const QString projectPath = wizard->path();
|
||||||
const QDir dir(projectPath);
|
const QDir dir(projectPath);
|
||||||
const QString projectName = wizard->projectName();
|
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);
|
const QStringList paths = Utils::transform(wizard->selectedPaths(), &FilePath::toString);
|
||||||
|
|
||||||
MimeType headerType = Utils::mimeTypeForName("text/x-chdr");
|
MimeType headerType = Utils::mimeTypeForName("text/x-chdr");
|
||||||
|
Reference in New Issue
Block a user