diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-26 17:08:42 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-27 09:35:47 +0200 |
commit | 077b8f8df437d1cfcf67b153dd4535c36786bdee (patch) | |
tree | 50dde6745b58f143a1d20f8baccb909f7ce2cdfe /src/qmlmodels | |
parent | facffe8e5715a7ef0a07d4b950f9433fc92d8882 (diff) |
qmltypes: Add information about QQmlCustomParser
Adds a macro called QML_CUSTOMPARSER which will result in a hasCustomParser flag to be set in qmltypes.
Also ensures qmllint does not warn about unknown properties when a class utilizes custom parsers.
Fixes: QTBUG-93027
Change-Id: I7559d79c9bf06a0a7a93f54370948f12d09dd64e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlmodels')
-rw-r--r-- | src/qmlmodels/qqmllistmodel_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlmodels/qqmllistmodel_p.h b/src/qmlmodels/qqmllistmodel_p.h index bf4279cd05..2e8181e10c 100644 --- a/src/qmlmodels/qqmllistmodel_p.h +++ b/src/qmlmodels/qqmllistmodel_p.h @@ -85,6 +85,7 @@ class Q_QMLMODELS_PRIVATE_EXPORT QQmlListModel : public QAbstractListModel Q_PROPERTY(QObject *agent READ agent CONSTANT REVISION(2, 14)) QML_NAMED_ELEMENT(ListModel) QML_ADDED_IN_VERSION(2, 0) + QML_CUSTOMPARSER public: QQmlListModel(QObject *parent=nullptr); |