Skip to content

Commit 9c3df65

Browse files
author
Qt Forward Merge Bot
committed
Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: I6f09c39da415aeb1bfc6214e6774f531fbe2f161
2 parents 781e5c0 + d4c5e69 commit 9c3df65

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

src/plugins/platforms/webgl/qwebglintegration.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,10 @@ void QWebGLIntegrationPrivate::handleMouse(const ClientData &clientData, const Q
493493
QPointF globalPos(object.value("clientX").toDouble(),
494494
object.value("clientY").toDouble());
495495
auto buttons = static_cast<Qt::MouseButtons>(object.value("buttons").toInt());
496-
auto time = object.value("time").toDouble();
496+
auto time = object.value("time").toString();
497497
auto platformWindow = findWindow(clientData, winId);
498498
QWindowSystemInterface::handleMouseEvent(platformWindow->window(),
499-
static_cast<ulong>(time),
499+
time.toULong(),
500500
localPos,
501501
globalPos,
502502
Qt::MouseButtons(buttons),
@@ -535,11 +535,11 @@ void QWebGLIntegrationPrivate::handleTouch(const ClientData &clientData, const Q
535535
const auto winId = object.value("name").toInt(-1);
536536
Q_ASSERT(winId != -1);
537537
auto window = findWindow(clientData, winId)->window();
538-
const auto time = object.value("time").toDouble();
538+
const auto time = object.value("time").toString();
539539
const auto eventType = object.value("event").toString();
540540
if (eventType == QStringLiteral("touchcancel")) {
541541
QWindowSystemInterface::handleTouchCancelEvent(window,
542-
time,
542+
time.toULong(),
543543
touchDevice,
544544
Qt::NoModifier);
545545
} else {
@@ -585,7 +585,7 @@ void QWebGLIntegrationPrivate::handleTouch(const ClientData &clientData, const Q
585585
}
586586

587587
QWindowSystemInterface::handleTouchEvent(window,
588-
time,
588+
time.toULong(),
589589
touchDevice,
590590
points,
591591
Qt::NoModifier);

src/plugins/platforms/webgl/qwebglwindow.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ QWebGLWindow::QWebGLWindow(QWindow *w) :
5858
QPlatformWindow(w),
5959
d_ptr(new QWebGLWindowPrivate(this))
6060
{
61-
Q_D(QWebGLWindow);
62-
d->raster = false;
63-
d->flags = 0;
6461
}
6562

6663
QWebGLWindow::~QWebGLWindow()
@@ -118,7 +115,7 @@ void QWebGLWindow::destroy()
118115

119116
qt_window_private(window())->updateRequestPending = false;
120117

121-
d->flags = 0;
118+
d->flags = QWebGLWindowPrivate::Flags{};
122119

123120
auto integrationPrivate = QWebGLIntegrationPrivate::instance();
124121
auto clientData = integrationPrivate->findClientData(surface()->surfaceHandle());

src/plugins/platforms/webgl/webqt.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ window.onload = function () {
212212
var object = { "type": "mouse",
213213
"buttons": buttons,
214214
"layerX": layerX, "layerY": layerY, "clientX": clientX, "clientY": clientY,
215-
"time": new Date().getTime(),
215+
"time": new Date().getTime().toString(),
216216
"name": name
217217
};
218218
sendObject(object);
@@ -285,7 +285,7 @@ window.onload = function () {
285285
var object = {
286286
"type": "touch",
287287
"name": name,
288-
"time": new Date().getTime(),
288+
"time": new Date().getTime().toString(),
289289
"event": event.type,
290290
"changedTouches": [],
291291
"stationaryTouches": [],

0 commit comments

Comments
 (0)