mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Ditch deprecation warning
This commit is contained in:
parent
882f06121b
commit
33fb7ed258
@ -177,7 +177,7 @@ bool GuiImage::rotate(Params const & params)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
QImage const & image = is_transformed_ ? transformed_ : original_;
|
QImage const & image = is_transformed_ ? transformed_ : original_;
|
||||||
QMatrix m;
|
QTransform m;
|
||||||
m.rotate(- params.angle);
|
m.rotate(- params.angle);
|
||||||
transformed_ = image.transformed(m);
|
transformed_ = image.transformed(m);
|
||||||
return true;
|
return true;
|
||||||
@ -205,7 +205,7 @@ bool GuiImage::scale(Params const & params)
|
|||||||
scale += 0.0001;
|
scale += 0.0001;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QMatrix m;
|
QTransform m;
|
||||||
m.scale(scale, scale);
|
m.scale(scale, scale);
|
||||||
// Bilinear filtering is used to scale graphics preview
|
// Bilinear filtering is used to scale graphics preview
|
||||||
transformed_ = image.transformed(m, Qt::SmoothTransformation);
|
transformed_ = image.transformed(m, Qt::SmoothTransformation);
|
||||||
|
Loading…
Reference in New Issue
Block a user