MotorCluster: project reconfiguration to show all files in the project tree
The purpose of this change is to
-
suppress warnings when compiling for MCUs, e.g:
[qmlprojectexporter] C:/git/dev/qtdesign-studio/playground/MotorCluster/MotorCluster.qmlproject:28:13: warning: Unexpected value. Maybe an array is missing a comma between entries, or a string is missing quotes content/Logo.ui.qml,
-
show all files in the project tree, including underlying module files, qmldirs and
qtquickcontrols2.conf
(as we do in new projects or examples for MCUs).
There is one warning that I couldn't fix, which says It is not recommended to use the 'directory' property.
(in terms of QmlFiles
node)
It suggests that all qml files should be listed explicitly (in the files
propety).
However, it doesn't work for qml files included in the module. Compilation failed with an error:
error: Type Constants with 'pragma Singleton' is imported as non-singleton. Singletons defined in QML must be part of a module.
I think we can consider making an improvement: if project has an underlying module, like:
ModuleFiles { files: [ "imports/MotorClusterData/MotorClusterData.qmlproject" ] }
Design Studio could check it's contents and show in the project tree qml files defined in the module, without having to make any other changes to the root .qmlproject