summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorKevin Simons <kevin.simons@nokia.com>2011-11-04 12:43:49 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-05 23:47:02 +0100
commitefe02f9673dc948ef4b48b2abfeb15c978d2b438 (patch)
tree7aed4338e350ab3401604467681af56c72a9c9f3 /src/corelib
parent7851568c65e0560056c6fa541039543d43a63e20 (diff)
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>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/kernel/qmetatype.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h
index 156c52bce2..24802ee38e 100644
--- a/src/corelib/kernel/qmetatype.h
+++ b/src/corelib/kernel/qmetatype.h
@@ -132,6 +132,10 @@ public:
static int sizeOf(int type);
static bool isRegistered(int type);
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 *construct(int type, void *where, const void *copy);
static void destruct(int type, void *where);