Update a few doc regarding Q_FLAG

Change-Id: Ic26b3d64c9a5d5109bd8a0b359f063529d0181fc
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
Olivier Goffart 2015-03-14 12:17:05 +01:00 committed by Olivier Goffart (Woboq GmbH)
parent 4a6ba203b5
commit 8cec5e9a34
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(MyClass::Options)
//! [1]
//! [meta-object flags]
Q_FLAGS(Options)
Q_FLAG(Options)
//! [meta-object flags]
//! [2]

View File

@ -205,7 +205,7 @@ Q_STATIC_ASSERT_X(UCHAR_MAX == 255, "Qt assumes that char is 8 bits");
The Q_DECLARE_FLAGS() macro does not expose the flags to the meta-object
system, so they cannot be used by Qt Script or edited in Qt Designer.
To make the flags available for these purposes, the Q_FLAGS() macro must
To make the flags available for these purposes, the Q_FLAG() macro must
be used:
\snippet code/src_corelib_global_qglobal.cpp meta-object flags