diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2016-07-26 09:43:49 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2016-07-26 11:50:29 +0000 |
commit | 1c5737d3cb0502f551f7108feda517b153572954 (patch) | |
tree | d8fe3cc1f989474de7e8d1e26acaa960246bffb2 /src/qml | |
parent | 16b680b734101db0cb4fa3f313ac563a509ddff4 (diff) |
Mention Q_FLAG in C++ <=> QML type conversion documentation
For a user visiting doc.qt.io/qt-5/qtqml-cppintegration-data.html, it's
very difficult to know how to use an enum as flags in QML, because it's
not mentioned anywhere on this page.
Change-Id: I35065bff825b8aebab1477ec883d17cbab92b3ba
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/doc/src/cppintegration/data.qdoc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/doc/src/cppintegration/data.qdoc b/src/qml/doc/src/cppintegration/data.qdoc index e153ca3d8b..ff30bffa83 100644 --- a/src/qml/doc/src/cppintegration/data.qdoc +++ b/src/qml/doc/src/cppintegration/data.qdoc @@ -375,6 +375,8 @@ Message { } \endqml +To use an enum as a \l {QFlags}{flags} type in QML, see \l Q_FLAG(). + \note The names of enum values must begin with a capital letter in order to be accessible from QML. |