Commit 2d5bd70c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove deprecated method

Remove resetMatrix as it's a method which call resetTransform
parent d1c5b47d
......@@ -147,7 +147,6 @@ bool SvgPart::closeUrl()
mPreviousVerticalScrollPosition = mView->verticalScrollBar()->value();
}
mView->resetMatrix();
mView->resetTransform();
// cannot reset the rect completely, as a null QRectF is ignored
// so at least just a 1 pixel square one
......@@ -236,9 +235,9 @@ qreal SvgPart::zoom() const
void SvgPart::setZoom(qreal value)
{
QMatrix matrix;
QTransform matrix;
matrix.scale(value, value);
mView->setMatrix(matrix);
mView->setTransform(matrix);
}
int SvgPart::horizontalScrollPosition() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment