diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2018-06-04 10:04:47 +0200 |
---|---|---|
committer | Jesus Fernandez <Jesus.Fernandez@qt.io> | 2018-06-04 17:05:13 +0000 |
commit | f1d37773351996fa62223c4bba577fab3c085ef0 (patch) | |
tree | f6545a8fd8394de0826aece9b87db13e92d3d38f | |
parent | 6e768c55e605008398168d1524cb02045e047c3d (diff) |
Fix typo
Replace radious with radius.
Change-Id: Ief1373a6eeaa54490ca608d633294438274fa15c
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r-- | src/plugins/platforms/webgl/qwebglintegration.cpp | 12 | ||||
-rw-r--r-- | src/plugins/platforms/webgl/webqt.jsx | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/platforms/webgl/qwebglintegration.cpp b/src/plugins/platforms/webgl/qwebglintegration.cpp index 59c2891..1b4214a 100644 --- a/src/plugins/platforms/webgl/qwebglintegration.cpp +++ b/src/plugins/platforms/webgl/qwebglintegration.cpp @@ -541,16 +541,16 @@ void QWebGLIntegrationPrivate::handleTouch(const ClientData &clientData, const Q QWindowSystemInterface::TouchPoint point; // support more than one const auto pageX = touch.toObject().value("pageX").toDouble(); const auto pageY = touch.toObject().value("pageY").toDouble(); - const auto radiousX = touch.toObject().value("radiousX").toDouble(); - const auto radiousY = touch.toObject().value("radiousY").toDouble(); + const auto radiusX = touch.toObject().value("radiusX").toDouble(); + const auto radiusY = touch.toObject().value("radiusY").toDouble(); const auto clientX = touch.toObject().value("clientX").toDouble(); const auto clientY = touch.toObject().value("clientY").toDouble(); point.id = touch.toObject().value("identifier").toInt(0); point.pressure = touch.toObject().value("force").toDouble(1.); - point.area.setX(pageX - radiousX); - point.area.setY(pageY - radiousY); - point.area.setWidth(radiousX * 2); - point.area.setHeight(radiousY * 2); + point.area.setX(pageX - radiusX); + point.area.setY(pageY - radiusY); + point.area.setWidth(radiusX * 2); + point.area.setHeight(radiusY * 2); point.normalPosition.setX(touch.toObject().value("normalPositionX").toDouble()); point.normalPosition.setY(touch.toObject().value("normalPositionY").toDouble()); point.rawPositions = {{ clientX, clientY }}; diff --git a/src/plugins/platforms/webgl/webqt.jsx b/src/plugins/platforms/webgl/webqt.jsx index cf0bae4..0ea86d4 100644 --- a/src/plugins/platforms/webgl/webqt.jsx +++ b/src/plugins/platforms/webgl/webqt.jsx @@ -290,8 +290,8 @@ window.onload = function () { "identifier" : changedTouch.identifier, "pageX" : changedTouch.pageX, "pageY" : changedTouch.pageY, - "radiousX" : changedTouch.radiousX, - "radiousY" : changedTouch.radiousY, + "radiusX" : changedTouch.radiusX, + "radiusY" : changedTouch.radiusY, "rotatingAngle" : changedTouch.rotatingAngle, "screenX" : changedTouch.screenX, "screenY" : changedTouch.screenY, |