mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -05:00
Replaced deprecated QGraphicsView::matrix by matrix::transform
This commit is contained in:
parent
8d497dce0a
commit
71aaa25e69
1 changed files with 1 additions and 1 deletions
|
|
@ -353,7 +353,7 @@ void GraphWidget::wheelEvent(QWheelEvent *event)
|
||||||
|
|
||||||
void GraphWidget::scaleView(qreal scaleFactor)
|
void GraphWidget::scaleView(qreal scaleFactor)
|
||||||
{
|
{
|
||||||
qreal factor = matrix().scale(scaleFactor, scaleFactor).mapRect(QRectF(0, 0, 1, 1)).width();
|
qreal factor = transform().scale(scaleFactor, scaleFactor).mapRect(QRectF(0, 0, 1, 1)).width();
|
||||||
if (factor < 0.07 || factor > 100)
|
if (factor < 0.07 || factor > 100)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue