Use QTransform instead of QMatrix

This commit is contained in:
Luis Ángel San Martín 2021-10-01 20:25:21 +02:00
parent 154f215c38
commit 100e1c40a1

View File

@ -348,7 +348,7 @@ void PageRender::run()
QImage img; QImage img;
img.loadFromData(data); img.loadFromData(data);
if (degrees > 0) { if (degrees > 0) {
QMatrix m; QTransform m;
m.rotate(degrees); m.rotate(degrees);
img = img.transformed(m, Qt::SmoothTransformation); img = img.transformed(m, Qt::SmoothTransformation);
} }