QmlProject: Add warning for old projects

Task-number: QDS-13705
Change-Id: Ief8af59611d71e46bf6cfa5fd171e759c5c82fdc
Reviewed-by: Jarko Vihriala <jarko.vihriala@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2024-09-19 14:47:11 +02:00
parent 4ca84d844c
commit 60096814b4

View File

@@ -45,6 +45,14 @@ CMakeWriter::Ptr CMakeWriter::create(CMakeGenerator *parent)
if (float version = versionString.toFloat(&ok); ok && version > 4.4) if (float version = versionString.toFloat(&ok); ok && version > 4.4)
return std::make_unique<CMakeWriterV1>(parent); return std::make_unique<CMakeWriterV1>(parent);
CMakeGenerator::logIssue(
ProjectExplorer::Task::Warning,
"The project was created with a Qt Design Studio version earlier than Qt Design Studio "
"4.5. Due to limitations of the project structure in earlier Qt Design Studio versions, "
"the resulting application might not display all the assets. Referring to "
"assets between different QML modules does not work in the compiled application.",
buildSystem->projectFilePath());
return std::make_unique<CMakeWriterV0>(parent); return std::make_unique<CMakeWriterV0>(parent);
} }