aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpinchhandler.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2023-02-07 13:46:54 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2023-02-21 07:02:18 +0100
commit955eb5c401c9aa195a1f37d395bbf08192206e50 (patch)
treee865bfb322f4233cefd864ca204364c7c18181e0 /src/quick/handlers/qquickpinchhandler.cpp
parent40e2811843b3dc414d48f2221e2dee888b448b9b (diff)
Fix dummy variable in QQuickPinchHandler::setPersistentScale
Pick-to: 6.5 Change-Id: Iac2cecbda2eba15d6b11026b172cd79c3bb2463c Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpinchhandler.cpp')
-rw-r--r--src/quick/handlers/qquickpinchhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/handlers/qquickpinchhandler.cpp b/src/quick/handlers/qquickpinchhandler.cpp
index 4880457c63..0e0add2a37 100644
--- a/src/quick/handlers/qquickpinchhandler.cpp
+++ b/src/quick/handlers/qquickpinchhandler.cpp
@@ -161,12 +161,12 @@ void QQuickPinchHandler::setActiveScale(qreal scale)
and \c scaleChanged(1) is emitted.
*/
-void QQuickPinchHandler::setPersistentScale(qreal rot)
+void QQuickPinchHandler::setPersistentScale(qreal scale)
{
- if (rot == persistentScale())
+ if (scale == persistentScale())
return;
- m_scaleAxis.updateValue(m_scaleAxis.activeValue(), rot);
+ m_scaleAxis.updateValue(m_scaleAxis.activeValue(), scale);
emit scaleChanged(1);
}