Commit Graph

3 Commits

Author SHA1 Message Date
Fabian Kosmale 76406193f1 SameGame: Fix qmllint warnings and add qmllint.ini
Fix the unqalified access warning by qualifying the lookup, and remove
an unused import. With that, the project is warning free, and we can
configure qmllint via its ini file to complain loudly if new warnings
are introduced.

Fixes: QTBUG-138178
Pick-to: 6.10
Change-Id: I785ac8dec15b99bce2306d5f1f754a2f55dcc334
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-09-15 17:39:39 +02:00
Sami Shalayel a841c45fee samegame demo: fix qmllint warnings
Fix the qmllint unqualified warnings and custom parsed
property changes.

Pick-to: 6.8
Task-number: QTBUG-100100
Change-Id: I3a8e310738d1521bae4e233c5610af833fcb697f
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-09-09 15:31:46 +02:00
Sami Shalayel 0c02d0545a samegame demo: port to qt_add_qml_module
Make the samegame demo use qt_add_qml_module instead of qt_add_resources.
This populates build/qtdoc/examples/demos/samegame/SameGameModule
instead of build/qtdoc/examples/demos/samegame/content because content
is a bad QML module name ™️.

Use qt_standard_project_setup().

Use QQuickView::loadFromModule() in the main.cpp and add a qmldir in the
.qrc to make loadFromModule() work when using qmake.

Pick-to: 6.8
Task-number: QTBUG-100100
Change-Id: I23e197c99ff284f62fa9deae12afe9ddbd510861
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-09-09 15:31:41 +02:00