From 71aaa25e698073d675d4217d9435f7830ab064d1 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Tue, 22 Jul 2025 21:55:08 +0200 Subject: [PATCH] Replaced deprecated QGraphicsView::matrix by matrix::transform --- retroshare-gui/src/gui/elastic/graphwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/elastic/graphwidget.cpp b/retroshare-gui/src/gui/elastic/graphwidget.cpp index f62628ccd..deb4dff2d 100644 --- a/retroshare-gui/src/gui/elastic/graphwidget.cpp +++ b/retroshare-gui/src/gui/elastic/graphwidget.cpp @@ -353,7 +353,7 @@ void GraphWidget::wheelEvent(QWheelEvent *event) 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) return;