aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/configure.cmake
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2021-02-24 13:31:20 +0100
committerIvan Solovev <ivan.solovev@qt.io>2021-03-10 15:17:57 +0100
commitea8f8e09007f4acb5530b1966bc5b2afab609064 (patch)
tree03b2c9ff8defd65a45daefe516ecc51501b528d7 /src/qml/configure.cmake
parentc42d558dc9ff89d452546412ee88a16ae1e324e4 (diff)
Introduce XmlListModel to QtDeclarative
XmlListModel was previously a part of QtXmlPatterns, which would not be a part of Qt 6. The idea of this commit is to move a simplified version of XmlListModel to QtDeclarative, so that it could be used at least in the examples of different Qt modules. Unlike the old implementation, this version does not have an XPath support. This results in a reduced feature set - the user can't build complicated XPath queries to populate model roles. Now the user can select an xml element and, optionally, an attribute, which will be used to extract the data. [ChangeLog][XmlListModel] Introduce an XmlListModel QML model to create read-only models from XML data. This is a simplified version of a model from QtXmlPatterns, which would no longer be a part of Qt 6. This model supports only simple slash-separated paths and, optionally, one attribute for each element. Task-number: QTBUG-89817 Change-Id: I4186587dc1445dd981ac92b4ce104434236a32b9 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/configure.cmake')
-rw-r--r--src/qml/configure.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/configure.cmake b/src/qml/configure.cmake
index 21acf9efa7..7f4a07b049 100644
--- a/src/qml/configure.cmake
+++ b/src/qml/configure.cmake
@@ -188,6 +188,13 @@ qt_feature("qml-itemmodel" PRIVATE
CONDITION QT_FEATURE_itemmodel
)
+qt_feature("qml-xmllistmodel" PRIVATE
+ SECTION "QML"
+ LABEL "QML XmlListModel"
+ PURPOSE "Enable XmlListModel in QML"
+ CONDITION QT_FEATURE_future
+)
+
# special case begin
qt_qml_find_python(__qt_qml_python_path __qt_qml_python_found)
# special case end