qt5base-lts/tests/auto/corelib/global/qglobal
Glenn Watson 15c13b91e6 Add Q_IS_ENUM(), and provide as flag in QMetaType::typeFlags()
Add Q_IS_ENUM() macro to determine if a given type is an
enumeration. Use information from that in QMetaType::registerType()
to store whether custom registered metatypes are enums or not.
This information can then be accessed by calling
QMetaType::typeFlags(int type). This is used by the declarative
code to determine whether a custom type in a variant can be safely
cast to an integer, which is required to allow passing non-local
enums as signal/slot params.

Change-Id: I9733837f56af201fa3017b4a22b761437a3c0de4
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-03-11 23:58:39 +01:00
..
.gitignore Moving relevant tests to corelib/global 2011-08-30 13:17:21 +02:00
qglobal.pro Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
tst_qglobal.cpp Add Q_IS_ENUM(), and provide as flag in QMetaType::typeFlags() 2012-03-11 23:58:39 +01:00