Doc: Replace mentions of deprecated macro

Q_ENUMS() is deprecated in favor of Q_ENUM().

Pick-to: 6.5
Task-number: QTBUG-113229
Change-Id: I29cc23c87b1d6e8eeb49dd1d3ddaf4ca7d2cf8c2
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
This commit is contained in:
Topi Reinio 2023-05-12 10:40:23 +00:00 committed by Topi Reiniö
parent 506d237751
commit cb8a71dac6
2 changed files with 3 additions and 3 deletions

View File

@ -4581,7 +4581,7 @@ QDebug operator<<(QDebug dbg, const QObject *o)
Q_GADGET makes a class member, \c{staticMetaObject}, available.
\c{staticMetaObject} is of type QMetaObject and provides access to the
enums declared with Q_ENUMS.
enums declared with Q_ENUM.
\sa Q_GADGET_EXPORT
*/

View File

@ -525,8 +525,8 @@
For example,
\snippet code/doc_src_stylesheet.qdoc 28
If the property references an enum declared with Q_ENUMS, you should
reference its constants by name, i.e., not their numeric value.
If the property references an enum declared with Q_ENUM, you should
reference its constants by name, not their numeric value.
\note Use the qproperty syntax with care, as it modifies the
widget that is being painted. Also, the qproperty syntax is evaluated only