diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2020-04-29 13:24:58 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2020-05-06 10:44:58 +0200 |
commit | 22f9e5fb1ed643f284f50b9417bdbafdfb20566b (patch) | |
tree | 9c2616522ca98534e2ceb6e4f13a9ffe5c622b93 /src/qml/doc/src/qmlfunctions.qdoc | |
parent | 1250d8b5b95eecac767a23563717e53faa5d3b8a (diff) |
Add a default message to QML_UNCREATABLE
[ChangeLog][QML][Feature] Add a default message to QML_UNCREATABLE when
proving an empty string as a reason
Fixes: QTBUG-83842
Change-Id: Ifd2044fa6c56c3a382d451ec47d5f92a1ac16b81
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/doc/src/qmlfunctions.qdoc')
-rw-r--r-- | src/qml/doc/src/qmlfunctions.qdoc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/doc/src/qmlfunctions.qdoc b/src/qml/doc/src/qmlfunctions.qdoc index 9c8cd5e859..f6ed2306c0 100644 --- a/src/qml/doc/src/qmlfunctions.qdoc +++ b/src/qml/doc/src/qmlfunctions.qdoc @@ -151,6 +151,8 @@ \l QML_NAMED_ELEMENT(). For such types, \l QML_UNCREATABLE() can be used to provide a custom error message. + Since Qt 6.0 you can use "" instead of a reason to use a standard message instead. + \sa QML_ELEMENT, QML_NAMED_ELEMENT(), QML_ANONYMOUS */ |