summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-11-30 03:03:37 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-11-30 03:03:37 +0100
commitd4c5e69944a48407d50fbe42c1af4be9bb8c4b87 (patch)
tree7edb9834776bc3af6d8ae75b2103aba88803a91b
parentf073783698fed536029b314cb523cf07cfa8b542 (diff)
parent47bd603dba7c1d66871646f309407976aafe2f6b (diff)
Merge remote-tracking branch 'origin/5.14' into 5.15
-rw-r--r--src/plugins/platforms/webgl/qwebglintegration.cpp10
-rw-r--r--src/plugins/platforms/webgl/webqt.jsx4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/platforms/webgl/qwebglintegration.cpp b/src/plugins/platforms/webgl/qwebglintegration.cpp
index 645c766..5031e5e 100644
--- a/src/plugins/platforms/webgl/qwebglintegration.cpp
+++ b/src/plugins/platforms/webgl/qwebglintegration.cpp
@@ -493,10 +493,10 @@ void QWebGLIntegrationPrivate::handleMouse(const ClientData &clientData, const Q
QPointF globalPos(object.value("clientX").toDouble(),
object.value("clientY").toDouble());
auto buttons = static_cast<Qt::MouseButtons>(object.value("buttons").toInt());
- auto time = object.value("time").toDouble();
+ auto time = object.value("time").toString();
auto platformWindow = findWindow(clientData, winId);
QWindowSystemInterface::handleMouseEvent(platformWindow->window(),
- static_cast<ulong>(time),
+ time.toULong(),
localPos,
globalPos,
Qt::MouseButtons(buttons),
@@ -535,11 +535,11 @@ void QWebGLIntegrationPrivate::handleTouch(const ClientData &clientData, const Q
const auto winId = object.value("name").toInt(-1);
Q_ASSERT(winId != -1);
auto window = findWindow(clientData, winId)->window();
- const auto time = object.value("time").toDouble();
+ const auto time = object.value("time").toString();
const auto eventType = object.value("event").toString();
if (eventType == QStringLiteral("touchcancel")) {
QWindowSystemInterface::handleTouchCancelEvent(window,
- time,
+ time.toULong(),
touchDevice,
Qt::NoModifier);
} else {
@@ -585,7 +585,7 @@ void QWebGLIntegrationPrivate::handleTouch(const ClientData &clientData, const Q
}
QWindowSystemInterface::handleTouchEvent(window,
- time,
+ time.toULong(),
touchDevice,
points,
Qt::NoModifier);
diff --git a/src/plugins/platforms/webgl/webqt.jsx b/src/plugins/platforms/webgl/webqt.jsx
index ca2b3b5..02f93a5 100644
--- a/src/plugins/platforms/webgl/webqt.jsx
+++ b/src/plugins/platforms/webgl/webqt.jsx
@@ -212,7 +212,7 @@ window.onload = function () {
var object = { "type": "mouse",
"buttons": buttons,
"layerX": layerX, "layerY": layerY, "clientX": clientX, "clientY": clientY,
- "time": new Date().getTime(),
+ "time": new Date().getTime().toString(),
"name": name
};
sendObject(object);
@@ -285,7 +285,7 @@ window.onload = function () {
var object = {
"type": "touch",
"name": name,
- "time": new Date().getTime(),
+ "time": new Date().getTime().toString(),
"event": event.type,
"changedTouches": [],
"stationaryTouches": [],