Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwasmeventdispatcher.cpp
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
7
8#include <QtGui/qpa/qwindowsysteminterface.h>
9
11
12QWasmEventDispatcher::QWasmEventDispatcher(std::shared_ptr<QWasmSuspendResumeControl> suspendResume)
13 :QEventDispatcherWasm(suspendResume)
14{
15
16}
17
18// Note: All event dispatcher functionality is implemented in QEventDispatcherWasm
19// in QtCore, except for processPostedEvents() below which uses API from QtGui.
21{
22 QEventDispatcherWasm::sendPostedEvents();
23 return QWindowSystemInterface::sendWindowSystemEvents(QEventLoop::AllEvents);
24}
25
27{
28 // This function is called when the application is ready to paint
29 // the first frame. Send the qtlaoder onLoaded event first (via
30 // the base class implementation), and then enable/call requestUpdate
31 // to deliver a frame.
32 QEventDispatcherWasm::onLoaded();
33
34 // Make sure all screens have a defined size; and pick
35 // up size changes due to onLoaded event handling.
37 wasmIntegration->resizeAllScreens();
38
39 wasmIntegration->releaseRequesetUpdateHold();
40}
41
42QT_END_NAMESPACE
static QWasmIntegration * get()
Combined button and popup list for selecting options.