Reinstate and deprecate the two argument QMetaType::construct

Change-Id: Id291f00ba13a39b4af022b75fd428b876d6dd9b0
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
Kevin Simons 2011-11-04 12:43:49 +01:00 committed by Qt by Nokia
parent 7851568c65
commit efe02f9673

View File

@ -132,6 +132,10 @@ public:
static int sizeOf(int type); static int sizeOf(int type);
static bool isRegistered(int type); static bool isRegistered(int type);
static void *create(int type, const void *copy = 0); static void *create(int type, const void *copy = 0);
#if QT_DEPRECATED_SINCE(5, 0)
QT_DEPRECATED static void *construct(int type, const void *copy = 0)
{ return create(type, copy); }
#endif
static void destroy(int type, void *data); static void destroy(int type, void *data);
static void *construct(int type, void *where, const void *copy); static void *construct(int type, void *where, const void *copy);
static void destruct(int type, void *where); static void destruct(int type, void *where);