summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-04-03 15:00:58 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-04-14 17:30:55 +0200
commitd6fe9c2160f70c2135a45a135f92c847508fb43e (patch)
tree38c74ee8c2ba5a50b65d5f45efa0780cfd80bbc3 /src/corelib/global
parenteaada70d4e76d0c35afcb36930154818a1eb1e49 (diff)
Deprecate QMacNativeWidget and QMacCocoaViewContainer
Change-Id: I489870f97dcf7b54a4427ead3a9e627dd938f4ca Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qcompilerdetection.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h
index aa38ef18c0..ebffe74188 100644
--- a/src/corelib/global/qcompilerdetection.h
+++ b/src/corelib/global/qcompilerdetection.h
@@ -1306,6 +1306,14 @@
# define QT_WARNING_DISABLE_DEPRECATED
#endif
+#ifndef QT_IGNORE_DEPRECATIONS
+#define QT_IGNORE_DEPRECATIONS(statement) \
+ QT_WARNING_PUSH \
+ QT_WARNING_DISABLE_DEPRECATED \
+ statement \
+ QT_WARNING_POP
+#endif
+
/*
Proper for-scoping in MIPSpro CC
*/