Update a few doc regarding Q_FLAG
Change-Id: Ic26b3d64c9a5d5109bd8a0b359f063529d0181fc Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
parent
4a6ba203b5
commit
8cec5e9a34
@ -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]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user