summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2019-09-23 08:35:49 +0200
committerLiang Qi <liang.qi@qt.io>2019-09-23 08:35:49 +0200
commit6572650641a2f64f0dd4f41b0426bbd3698f6530 (patch)
treeb28400a2983e044dc7911607ff57b27a9c8cd1bc /src/corelib
parent60e20abf19f58c34cb3a878636d955993b81cf2e (diff)
parentac5e198db4eea4670a5a4a22fb44eb8a6acc4c47 (diff)
Merge remote-tracking branch 'origin/5.13' into 5.14
Conflicts: src/widgets/styles/qstylesheetstyle.cpp Change-Id: If11da7799075cc2d5768da5603c5fc46773c4eae
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/kernel/qobject.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp
index f62eac61ed..0b396343af 100644
--- a/src/corelib/kernel/qobject.cpp
+++ b/src/corelib/kernel/qobject.cpp
@@ -4399,22 +4399,18 @@ QDebug operator<<(QDebug dbg, const QObject *o)
\relates QObject
\obsolete
+ In new code, you should prefer the use of the Q_ENUM() macro, which makes the
+ type available also to the meta type system.
+ For instance, QMetaEnum::fromType() will not work with types declared with Q_ENUMS().
+
This macro registers one or several enum types to the meta-object
system.
- For example:
-
- \snippet code/src_corelib_kernel_qobject.cpp 38
-
If you want to register an enum that is declared in another class,
the enum must be fully qualified with the name of the class
defining it. In addition, the class \e defining the enum has to
inherit QObject as well as declare the enum using Q_ENUMS().
- In new code, you should prefer the use of the Q_ENUM() macro, which makes the
- type available also to the meta type system.
- For instance, QMetaEnum::fromType() will not work with types declared with Q_ENUMS().
-
\sa {Qt's Property System}
*/