QGraphicsItem: mark GraphicsItemChange::ItemMatrixChange as deprecated

The enum GraphicsItemChange::ItemMatrixChange is deprecated since Qt4
times. The corresponding matrix functions were also marked as deprecated
in 5.13 but the enum was forgotten. Therefore also mark it as deprecated
so it can be removed with Qt6.

Change-Id: I39bec89af14aaefe2e504f5a890ef314574766a1
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
This commit is contained in:
Christian Ehrlicher 2019-08-26 19:50:03 +02:00
parent 0315e1945e
commit 271d3bae38
2 changed files with 6 additions and 2 deletions

View File

@ -11523,9 +11523,11 @@ QDebug operator<<(QDebug debug, QGraphicsItem::GraphicsItemChange change)
case QGraphicsItem::ItemFlagsHaveChanged:
str = "ItemFlagsHaveChanged";
break;
#if QT_DEPRECATED_SINCE(5, 14)
case QGraphicsItem::ItemMatrixChange:
str = "ItemMatrixChange";
break;
#endif
case QGraphicsItem::ItemParentChange:
str = "ItemParentChange";
break;

View File

@ -110,8 +110,10 @@ public:
enum GraphicsItemChange {
ItemPositionChange,
ItemMatrixChange,
ItemVisibleChange,
#if QT_DEPRECATED_SINCE(5, 14)
ItemMatrixChange Q_DECL_ENUMERATOR_DEPRECATED_X("Use ItemTransformChange instead"),
#endif
ItemVisibleChange = 2,
ItemEnabledChange,
ItemSelectedChange,
ItemParentChange,