Remove deprecated PE_IndicatorViewItemCheck and PE_FrameStatusBar
They have been marked as deprecated since 5.13, and can be removed from Qt 6 codebase, which silences the respective compiler warnings. Change-Id: I3443c7bfa8db148b0b48957e2adc5eb131197faf Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
b5ff4c9f18
commit
0e12c8b020
@ -248,7 +248,7 @@ QAndroidStyle::ItemType QAndroidStyle::qtControl(QStyle::PrimitiveElement primit
|
||||
case QStyle::PE_FrameLineEdit:
|
||||
return QC_EditText;
|
||||
|
||||
case QStyle::PE_IndicatorViewItemCheck:
|
||||
case QStyle::PE_IndicatorItemViewItemCheck:
|
||||
case QStyle::PE_IndicatorCheckBox:
|
||||
return QC_Checkbox;
|
||||
|
||||
|
@ -3211,7 +3211,7 @@ void QMacStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPai
|
||||
|
||||
CGContextRestoreGState(cg);
|
||||
break; }
|
||||
case PE_IndicatorViewItemCheck:
|
||||
case PE_IndicatorItemViewItemCheck:
|
||||
case PE_IndicatorRadioButton:
|
||||
case PE_IndicatorCheckBox: {
|
||||
const bool isEnabled = opt->state & State_Enabled;
|
||||
|
@ -2130,7 +2130,7 @@ void JavaStyle::drawPrimitive(PrimitiveElement element,
|
||||
painter->restore();
|
||||
break;
|
||||
}
|
||||
case PE_IndicatorViewItemCheck: {
|
||||
case PE_IndicatorItemViewItemCheck: {
|
||||
break;
|
||||
}
|
||||
case PE_FrameWindow: {
|
||||
|
@ -1837,7 +1837,7 @@
|
||||
item views keep the dimensions on individual sections. Also
|
||||
note that the delegates may use the style to paint decorations
|
||||
and frames around items. QItemDelegate, for instance, draws
|
||||
\c PE_FrameFocusRect and \c PE_IndicatorViewItemCheck.
|
||||
\c PE_FrameFocusRect and \c PE_IndicatorItemViewItemCheck.
|
||||
|
||||
\image javastyle/header.png
|
||||
|
||||
|
@ -638,7 +638,6 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment,
|
||||
indicator or button bevel.
|
||||
|
||||
\omitvalue PE_IndicatorViewItemCheck
|
||||
\value PE_FrameStatusBar Obsolete. Use PE_FrameStatusBarItem instead.
|
||||
|
||||
\value PE_PanelButtonCommand Button used to initiate an action, for
|
||||
example, a QPushButton.
|
||||
|
@ -142,9 +142,6 @@ public:
|
||||
PE_FrameLineEdit,
|
||||
PE_FrameMenu,
|
||||
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,
|
||||
@ -165,9 +162,6 @@ public:
|
||||
PE_IndicatorBranch,
|
||||
PE_IndicatorButtonDropDown,
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user