aboutsummaryrefslogtreecommitdiffstats
path: root/src/macextras/qmacfunctions.h
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@edeltech.ch>2014-04-12 15:47:25 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-14 06:45:06 +0200
commitabbb6d3761452d8add4ffd99ba5cb50c51dc7cf7 (patch)
tree64fb1a9cf09df044653d3e126151feaab64753f1 /src/macextras/qmacfunctions.h
parent3d7f132db4f91eccce1987c2860834a0b88d392d (diff)
Deprecate QByteArray <=> NSData converters for 5.3
The NSData conversion functions have been moved to QtCore so deprecate their use in QtMacExtras. Change-Id: I0e78b32c803a2856366d15302c96014af3ef4c34 Reviewed-by: Jake Petroules <jake.petroules@petroules.com> Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/macextras/qmacfunctions.h')
-rw-r--r--src/macextras/qmacfunctions.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/macextras/qmacfunctions.h b/src/macextras/qmacfunctions.h
index c624d15..cf7cc2a 100644
--- a/src/macextras/qmacfunctions.h
+++ b/src/macextras/qmacfunctions.h
@@ -66,8 +66,10 @@ class QWindow;
namespace QtMac
{
-Q_MACEXTRAS_EXPORT NSData *toNSData(const QByteArray &data);
-Q_MACEXTRAS_EXPORT QByteArray fromNSData(const NSData *data);
+#if QT_DEPRECATED_SINCE(5,3)
+QT_DEPRECATED Q_MACEXTRAS_EXPORT NSData *toNSData(const QByteArray &data);
+QT_DEPRECATED Q_MACEXTRAS_EXPORT QByteArray fromNSData(const NSData *data);
+#endif
Q_MACEXTRAS_EXPORT CGImageRef toCGImageRef(const QPixmap &pixmap);
Q_MACEXTRAS_EXPORT QPixmap fromCGImageRef(CGImageRef image);