Fix the build with disabled QGraphicsItem::ItemMatrixChange

QGraphicsItem::ItemMatrixChange has been deprecated since 5.14. Fixed
the usage in tests to compile condinionally, only when it is available.

Change-Id: I63e892a01a50fb9ac51bf38eb761cb26375bc194
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
This commit is contained in:
Sona Kurazyan 2019-09-02 15:18:35 +02:00
parent bc1f7c7cce
commit 38d5ad2ee5

View File

@ -4451,6 +4451,7 @@ protected:
break; break;
case QGraphicsItem::ItemPositionHasChanged: case QGraphicsItem::ItemPositionHasChanged:
break; break;
#if QT_DEPRECATED_SINCE(5, 14)
case QGraphicsItem::ItemMatrixChange: { case QGraphicsItem::ItemMatrixChange: {
#if QT_DEPRECATED_SINCE(5, 13) #if QT_DEPRECATED_SINCE(5, 13)
QT_WARNING_PUSH QT_WARNING_PUSH
@ -4462,6 +4463,7 @@ QT_WARNING_POP
#endif #endif
} }
break; break;
#endif
case QGraphicsItem::ItemTransformChange: { case QGraphicsItem::ItemTransformChange: {
QVariant variant; QVariant variant;
variant.setValue<QTransform>(transform()); variant.setValue<QTransform>(transform());