Commit Graph

3 Commits

Author SHA1 Message Date
Sami Shalayel 4da064941b rss news demo: port to qt_add_qml_module
Make the rssnews demo use qt_add_qml_module instead of qt_add_resources.
This populates build/qtdoc/examples/demos/rssnewsdemo/RssNewsModule
instead of build/qtdoc/examples/demos/rssnewsdemo/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: I060b3817a1c97efb731d7fd8814f421c9ee14168
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-09-20 13:16:07 +02:00
Doris Verria dbddd2eb33 Use new XmlListModel in rssnews demo
Reuse the XmlListModel from the shared folder in rssnews and remove dependency from qtxmlpatterns.

Fixes: QTBUG-88059
Change-Id: I9171805aa928d623b3d9953dc109a69729f509b8
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-11-05 12:20:47 +01:00
Venugopal Shivashankar 70ce5f4d3e Move demos to qtdoc repository
These demos use several modules and moving them allows to use for
example Qt Quick Controls 2 in them.

The shared directory should be removed and the examples made
self-contained.

Change-Id: I5dc667d22388651894d7d145b65752bc5c5cf6cf
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
2018-07-09 12:43:59 +00:00