@@ -493,10 +493,10 @@ void QWebGLIntegrationPrivate::handleMouse(const ClientData &clientData, const Q
493
493
QPointF globalPos (object.value (" clientX" ).toDouble (),
494
494
object.value (" clientY" ).toDouble ());
495
495
auto buttons = static_cast <Qt::MouseButtons>(object.value (" buttons" ).toInt ());
496
- auto time = object.value (" time" ).toDouble ();
496
+ auto time = object.value (" time" ).toString ();
497
497
auto platformWindow = findWindow (clientData, winId);
498
498
QWindowSystemInterface::handleMouseEvent (platformWindow->window (),
499
- static_cast <ulong>( time),
499
+ time. toULong ( ),
500
500
localPos,
501
501
globalPos,
502
502
Qt::MouseButtons (buttons),
@@ -535,11 +535,11 @@ void QWebGLIntegrationPrivate::handleTouch(const ClientData &clientData, const Q
535
535
const auto winId = object.value (" name" ).toInt (-1 );
536
536
Q_ASSERT (winId != -1 );
537
537
auto window = findWindow (clientData, winId)->window ();
538
- const auto time = object.value (" time" ).toDouble ();
538
+ const auto time = object.value (" time" ).toString ();
539
539
const auto eventType = object.value (" event" ).toString ();
540
540
if (eventType == QStringLiteral (" touchcancel" )) {
541
541
QWindowSystemInterface::handleTouchCancelEvent (window,
542
- time,
542
+ time. toULong () ,
543
543
touchDevice,
544
544
Qt::NoModifier);
545
545
} else {
@@ -585,7 +585,7 @@ void QWebGLIntegrationPrivate::handleTouch(const ClientData &clientData, const Q
585
585
}
586
586
587
587
QWindowSystemInterface::handleTouchEvent (window,
588
- time,
588
+ time. toULong () ,
589
589
touchDevice,
590
590
points,
591
591
Qt::NoModifier);
0 commit comments