From 9c0d0e4a6bbf15b3c483d619d9fbb9f0452f5d54 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 19 Sep 2024 14:47:11 +0200 Subject: [PATCH] QmlProject: Add warning for old projects Task-number: QDS-13705 Change-Id: Ief8af59611d71e46bf6cfa5fd171e759c5c82fdc Reviewed-by: Thomas Hartmann --- .../qmlprojectmanager/qmlprojectexporter/cmakewriter.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/qmlprojectmanager/qmlprojectexporter/cmakewriter.cpp b/src/plugins/qmlprojectmanager/qmlprojectexporter/cmakewriter.cpp index 206029a125b..d34580e6974 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectexporter/cmakewriter.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectexporter/cmakewriter.cpp @@ -38,6 +38,14 @@ CMakeWriter::Ptr CMakeWriter::create(CMakeGenerator *parent) if (float version = versionString.toFloat(&ok); ok && version > 4.4) return std::make_unique(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(parent); }