Properly deprecate assorted enum members
This adds the first uses of Q_DECL_ENUMERATOR_DEPRECATED. Prompted by API change review for 5.13, comment by Christian Ehrlicher. Task-number: QTBUG-73484 Change-Id: Ic106048cec18960a91f88eb12650abab6abf0e97 Reviewed-by: Rolf Eike Beer <eb@emlix.com> Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
This commit is contained in:
parent
d8cf721d60
commit
116a661791
@ -500,7 +500,9 @@ public:
|
||||
AA_NativeWindows = 3,
|
||||
AA_DontCreateNativeWidgetSiblings = 4,
|
||||
AA_PluginApplication = 5,
|
||||
AA_MacPluginApplication = AA_PluginApplication, // ### Qt 6: remove me
|
||||
#if QT_DEPRECATED_SINCE(5, 13) // ### Qt 6: remove me
|
||||
AA_MacPluginApplication Q_DECL_ENUMERATOR_DEPRECATED = AA_PluginApplication,
|
||||
#endif
|
||||
AA_DontUseNativeMenuBar = 6,
|
||||
AA_MacDontSwapCtrlAndMeta = 7,
|
||||
AA_Use96Dpi = 8,
|
||||
@ -1504,12 +1506,12 @@ public:
|
||||
// Metadata
|
||||
FontRole = 6,
|
||||
TextAlignmentRole = 7,
|
||||
#if QT_DEPRECATED_SINCE(5, 13)
|
||||
BackgroundColorRole = 8,
|
||||
TextColorRole = 9,
|
||||
#endif
|
||||
BackgroundRole = 8,
|
||||
ForegroundRole = 9,
|
||||
#if QT_DEPRECATED_SINCE(5, 13) // ### Qt 6: remove me
|
||||
BackgroundColorRole Q_DECL_ENUMERATOR_DEPRECATED = BackgroundRole,
|
||||
TextColorRole Q_DECL_ENUMERATOR_DEPRECATED = ForegroundRole,
|
||||
#endif
|
||||
CheckStateRole = 10,
|
||||
// Accessibility
|
||||
AccessibleTextRole = 11,
|
||||
|
@ -141,8 +141,10 @@ public:
|
||||
PE_FrameGroupBox,
|
||||
PE_FrameLineEdit,
|
||||
PE_FrameMenu,
|
||||
PE_FrameStatusBar, // ### Qt 6: remove
|
||||
PE_FrameStatusBarItem = PE_FrameStatusBar,
|
||||
PE_FrameStatusBarItem,
|
||||
#if QT_DEPRECATED_SINCE(5, 13) // ### Qt 6: remove
|
||||
PE_FrameStatusBar Q_DECL_ENUMERATOR_DEPRECATED = PE_FrameStatusBarItem,
|
||||
#endif
|
||||
PE_FrameTabWidget,
|
||||
PE_FrameWindow,
|
||||
PE_FrameButtonBevel,
|
||||
@ -162,8 +164,10 @@ public:
|
||||
PE_IndicatorArrowUp,
|
||||
PE_IndicatorBranch,
|
||||
PE_IndicatorButtonDropDown,
|
||||
PE_IndicatorViewItemCheck, // ### Qt 6: remove
|
||||
PE_IndicatorItemViewItemCheck = PE_IndicatorViewItemCheck,
|
||||
PE_IndicatorItemViewItemCheck,
|
||||
#if QT_DEPRECATED_SINCE(5, 13) // ### Qt 6: remove
|
||||
PE_IndicatorViewItemCheck Q_DECL_ENUMERATOR_DEPRECATED = PE_IndicatorItemViewItemCheck,
|
||||
#endif
|
||||
PE_IndicatorCheckBox,
|
||||
PE_IndicatorDockWidgetResizeHandle,
|
||||
PE_IndicatorHeaderArrow,
|
||||
@ -309,8 +313,9 @@ public:
|
||||
SE_TabWidgetRightCorner,
|
||||
|
||||
SE_ItemViewItemCheckIndicator,
|
||||
SE_ViewItemCheckIndicator = SE_ItemViewItemCheckIndicator, // ### Qt 6: remove
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 13) // ### Qt 6: remove
|
||||
SE_ViewItemCheckIndicator Q_DECL_ENUMERATOR_DEPRECATED = SE_ItemViewItemCheckIndicator,
|
||||
#endif
|
||||
SE_TabBarTearIndicator,
|
||||
SE_TabBarTearIndicatorLeft = SE_TabBarTearIndicator,
|
||||
|
||||
@ -506,9 +511,11 @@ public:
|
||||
PM_DialogButtonsButtonHeight,
|
||||
|
||||
PM_MdiSubWindowFrameWidth,
|
||||
PM_MDIFrameWidth = PM_MdiSubWindowFrameWidth, // ### Qt 6: remove
|
||||
PM_MdiSubWindowMinimizedWidth,
|
||||
PM_MDIMinimizedWidth = PM_MdiSubWindowMinimizedWidth, // ### Qt 6: remove
|
||||
#if QT_DEPRECATED_SINCE(5, 13) // ### Qt 6: remove
|
||||
PM_MDIFrameWidth Q_DECL_ENUMERATOR_DEPRECATED = PM_MdiSubWindowFrameWidth,
|
||||
PM_MDIMinimizedWidth Q_DECL_ENUMERATOR_DEPRECATED = PM_MdiSubWindowMinimizedWidth,
|
||||
#endif
|
||||
|
||||
PM_HeaderMargin,
|
||||
PM_HeaderMarkSize,
|
||||
@ -649,7 +656,9 @@ public:
|
||||
SH_ComboBox_Popup,
|
||||
SH_TitleBar_NoBorder,
|
||||
SH_Slider_StopMouseOverSlider,
|
||||
SH_ScrollBar_StopMouseOverSlider = SH_Slider_StopMouseOverSlider, // ### Qt 6: remove
|
||||
#if QT_DEPRECATED_SINCE(5, 13) // ### Qt 6: remove
|
||||
SH_ScrollBar_StopMouseOverSlider Q_DECL_ENUMERATOR_DEPRECATED = SH_Slider_StopMouseOverSlider,
|
||||
#endif
|
||||
SH_BlinkCursorWhenTextSelected,
|
||||
SH_RichText_FullWidthSelection,
|
||||
SH_Menu_Scrollable,
|
||||
|
Loading…
Reference in New Issue
Block a user