summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qeventdispatcher_wasm.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2021-12-10 11:30:34 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2021-12-23 11:21:53 +0100
commite98f5de6e1a19e06cc9e94ea01ca27d9a65f8d70 (patch)
tree761135ff5f6defa6a6e0fe33e0bdab8b74483990 /src/corelib/kernel/qeventdispatcher_wasm.cpp
parent054b814daacdd0cd7ac470da73c8307a6edcd89e (diff)
wasm: add virtual processWindowSystemEvents()
The QtCore event dispatcher will be used from QtGui as well. Add virtual function where window system events processing can be added. Pick-to: 6.3 Change-Id: Ia6eda9ae18b2e91189ef9f60b6621d19a83313de Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/corelib/kernel/qeventdispatcher_wasm.cpp')
-rw-r--r--src/corelib/kernel/qeventdispatcher_wasm.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_wasm.cpp b/src/corelib/kernel/qeventdispatcher_wasm.cpp
index 588e62a576..3732a745ce 100644
--- a/src/corelib/kernel/qeventdispatcher_wasm.cpp
+++ b/src/corelib/kernel/qeventdispatcher_wasm.cpp
@@ -226,9 +226,15 @@ bool QEventDispatcherWasm::processEvents(QEventLoop::ProcessEventsFlags flags)
hasPendingEvents = qGlobalPostedEventsCount() > 0;
QCoreApplication::sendPostedEvents();
+ processWindowSystemEvents(flags);
return hasPendingEvents;
}
+void QEventDispatcherWasm::processWindowSystemEvents(QEventLoop::ProcessEventsFlags flags)
+{
+ Q_UNUSED(flags);
+}
+
void QEventDispatcherWasm::registerSocketNotifier(QSocketNotifier *notifier)
{
if (!emscripten_is_main_runtime_thread()) {