QmlProjectManager: Write cmake-generator issues into the issues panel

write qtquickcontrols file if it does not exist
and minor cleanup of the cmake generator.

Change-Id: I9b7523f32e5a9b41904c02a398a6f924623f949a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Knud Dollereder
2024-04-15 16:39:10 +02:00
parent b5aac705ea
commit e55b5d0a0b
6 changed files with 33 additions and 21 deletions

View File

@@ -240,8 +240,8 @@ void CMakeWriter::writeFile(const Utils::FilePath &path, const QString &content)
QTextStream stream(&fileHandle);
stream << content;
} else {
QString text("Failed to write file: %1");
CMakeGenerator::logIssue(text.arg(path.path()));
QString text("Failed to write");
CMakeGenerator::logIssue(ProjectExplorer::Task::Error, text, path);
}
fileHandle.close();
}