Undef Q_DECL_ENUMERATOR_DEPRECATED when having no deprecation warnings
Since Q_DECL_ENUMERATOR_DEPRECATED can be explicitly set to something other than QT_DEPRECATED, then it needs to be explicitly undefined when QT_NO_DEPRECATED_WARNINGS is used to prevent it from showing a warning. Pick-to: 5.15 Change-Id: Ibe73ff5e7b5aa5eff93d0c4c0a38a33855a9a330 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
f63c810485
commit
59b03992ab
@ -302,6 +302,8 @@ typedef double qreal;
|
||||
# define QT_DEPRECATED_VARIABLE
|
||||
# undef QT_DEPRECATED_CONSTRUCTOR
|
||||
# define QT_DEPRECATED_CONSTRUCTOR
|
||||
# undef Q_DECL_ENUMERATOR_DEPRECATED
|
||||
# define Q_DECL_ENUMERATOR_DEPRECATED
|
||||
#endif
|
||||
|
||||
#ifndef QT_DEPRECATED_WARNINGS_SINCE
|
||||
|
Loading…
Reference in New Issue
Block a user