From 6749ea650ee1ac94d12d14444b15fa5683ef29ec Mon Sep 17 00:00:00 2001 From: Luca Di Sera Date: Mon, 4 Aug 2025 17:13:17 +0200 Subject: [PATCH] FX&MaterialShowroom: Add a configuration file for qmlllint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The example is currently in a state where qmllint produces almost no warnings, and should generally be kept in such a state. Thus, add a configuration file that sets the warning limit to "0", such that running the all_qmllint target for the example will fail if any warning is produced, with the additional strictness hopefully helping keeping the example almost warning-free. Some warnings were disabled, instead of fixed, due to a compatibility issue with Qt Design Studio, but should be fixed if that incompatibility is resolved. Pick-to: 6.10 Fixes: QTBUG-138170 Change-Id: Ibbbf17892f6be1b7b549718df16036d6a57c3022 Reviewed-by: Olivier De Cannière --- examples/demos/FX_Material_Showroom/.qmllint.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/demos/FX_Material_Showroom/.qmllint.ini diff --git a/examples/demos/FX_Material_Showroom/.qmllint.ini b/examples/demos/FX_Material_Showroom/.qmllint.ini new file mode 100644 index 000000000..823b80b02 --- /dev/null +++ b/examples/demos/FX_Material_Showroom/.qmllint.ini @@ -0,0 +1,11 @@ +[General] +MaxWarnings=0 + +[Warnings] +# Qt Design Studio .ui.qml files do not support non-target based +# PropertyChanges instances. +# qmllint, on the other hand, warns about them. +# To be compatible with Qt Design Studio we currently disable this +# warning, considering that there are many instances of it being +# triggered in ui.qml files. +Quick.PropertyChangesParsed=disable