summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qnamespace.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-07-20 13:08:26 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-08-27 13:05:42 +0000
commit7883bf730405b20594dd1385b8e817160a5895f2 (patch)
tree53f40e58dedb4d75cc0bdd833a57d23a77bfa914 /src/corelib/global/qnamespace.h
parentffde7e8995be207d3a3d628a31dbb19ba683a1c7 (diff)
Mark some Qt namespace enum members properly as deprecated
A comment is not good enough, Some of the enum members were even still in use, or mentioned in documentation. WA_ContentsPropagated, WA_WState_DND and WA_ForceAcceptDrops have been deprecated since 4.5.1; and at least the last has been an \omitvalue in the docs for even longer. (WA_ShowModal and WA_GroupLeader have been similarly marked, but are in use, see QTBUG-85816.) Push back to 5.15.1 in order to be able to remove these at Qt 6. Pick-to: 5.15.1 Change-Id: I6ea3839767e5f5158b0fed508f65798470191908 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/global/qnamespace.h')
-rw-r--r--src/corelib/global/qnamespace.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index cb9b738522..9dda3572b4 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -308,7 +308,9 @@ namespace Qt {
WA_Disabled = 0,
WA_UnderMouse = 1,
WA_MouseTracking = 2,
- WA_ContentsPropagated = 3, // ## deprecated
+#if QT_DEPRECATED_SINCE(5, 15) // commented as such since 4.5.1
+ WA_ContentsPropagated Q_DECL_ENUMERATOR_DEPRECATED = 3,
+#endif
WA_OpaquePaintEvent = 4,
#if QT_DEPRECATED_SINCE(5, 14)
WA_NoBackground Q_DECL_ENUMERATOR_DEPRECATED = WA_OpaquePaintEvent,
@@ -363,14 +365,16 @@ namespace Qt {
WA_WState_Reparented = 63,
WA_WState_ConfigPending = 64,
WA_WState_Polished = 66,
- WA_WState_DND = 67, // ## deprecated
+#if QT_DEPRECATED_SINCE(5, 15) // commented as such in 4.5.1
+ WA_WState_DND Q_DECL_ENUMERATOR_DEPRECATED = 67,
+#endif
WA_WState_OwnSizePolicy = 68,
WA_WState_ExplicitShowHide = 69,
- WA_ShowModal = 70, // ## deprecated
+ WA_ShowModal = 70, // ## deprecated since since 4.5.1 but still in use :-(
WA_MouseNoMask = 71,
- WA_GroupLeader = 72, // ## deprecated
- WA_NoMousePropagation = 73, // ## for now, might go away.
+ WA_GroupLeader = 72, // ## deprecated since since 4.5.1 but still in use :-(
+ WA_NoMousePropagation = 73, // for now, might go away.
WA_Hover = 74,
WA_InputMethodTransparent = 75, // Don't reset IM when user clicks on this (for virtual keyboards on embedded)
WA_QuitOnClose = 76,
@@ -379,7 +383,9 @@ namespace Qt {
WA_AcceptDrops = 78,
WA_DropSiteRegistered = 79, // internal
- WA_ForceAcceptDrops = WA_DropSiteRegistered, // ## deprecated
+#if QT_DEPRECATED_SINCE(5, 15) // commented as such since 4.5.1
+ WA_ForceAcceptDrops Q_DECL_ENUMERATOR_DEPRECATED_X("WA_ForceAcceptDrops is deprecated. Use WA_DropSiteRegistered instead") = WA_DropSiteRegistered,
+#endif
WA_WindowPropagation = 80,