diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-26 11:26:55 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-26 20:01:51 +0100 |
commit | 81629021ebc8789974c2f3c142b46eef799c1a95 (patch) | |
tree | 923d5f3ca1776265ce0bae8466e4da8a2de9c0f5 /src/qml/compiler/qqmlirbuilder_p.h | |
parent | f16f477eba8415f9edfd5d4b220ab8a565051410 (diff) |
QML: Introduce "pragma Strict"
This doesn't carry any meaning, yet, but it can be used by any tools to
apply stricter rules to a particular piece of QML.
Change-Id: I0bf8f22001c19c7cc2989abedc747d3d5b1bdee1
Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/compiler/qqmlirbuilder_p.h')
-rw-r--r-- | src/qml/compiler/qqmlirbuilder_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/compiler/qqmlirbuilder_p.h b/src/qml/compiler/qqmlirbuilder_p.h index 058f9802ae..e755694335 100644 --- a/src/qml/compiler/qqmlirbuilder_p.h +++ b/src/qml/compiler/qqmlirbuilder_p.h @@ -410,7 +410,8 @@ private: struct Q_QMLCOMPILER_PRIVATE_EXPORT Pragma { enum PragmaType { - PragmaSingleton = 0x1 + PragmaSingleton = 0x1, + PragmaStrict = 0x2 }; quint32 type; |