remove deprecated toAffine
This commit is contained in:
parent
b618599e62
commit
667c1d8b0d
|
@ -23,7 +23,6 @@
|
||||||
#include <QSGFlatColorMaterial>
|
#include <QSGFlatColorMaterial>
|
||||||
#include <QSGGeometryNode>
|
#include <QSGGeometryNode>
|
||||||
#include <qmath.h>
|
#include <qmath.h>
|
||||||
#include <QTransform>
|
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
|
@ -14,7 +14,7 @@ inline Q_REQUIRED_RESULT QMatrix4x4 matrix_deg( float rZ = 0.0f,
|
||||||
QTransform transform;
|
QTransform transform;
|
||||||
transform.translate( tX, tY );
|
transform.translate( tX, tY );
|
||||||
transform.rotate(rZ, Qt::ZAxis);
|
transform.rotate(rZ, Qt::ZAxis);
|
||||||
return transform.toAffine();
|
return transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
|
|
Loading…
Reference in New Issue