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
main.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
5
#
include
<
qpa
/
qplatformintegrationplugin
.
h
>
6
#
include
"qwasmintegration.h"
7
8
QT_BEGIN_NAMESPACE
9
10
using
namespace
Qt::StringLiterals;
11
12
class
QWasmIntegrationPlugin
:
public
QPlatformIntegrationPlugin
13
{
14
Q_OBJECT
15
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"wasm.json"
)
16
public
:
17
QPlatformIntegration
*
create
(
const
QString
&,
const
QStringList
&)
override
;
18
};
19
20
QPlatformIntegration *
QWasmIntegrationPlugin
::create(
const
QString& system,
const
QStringList& paramList)
21
{
22
Q_UNUSED(paramList);
23
if
(!system.compare(
"wasm"_L1
, Qt::CaseInsensitive))
24
return
new
QWasmIntegration
;
25
26
return
nullptr
;
27
}
28
29
QT_END_NAMESPACE
30
31
#
include
"main.moc"
QWasmIntegrationPlugin
Definition
main.cpp:13
QWasmIntegration
Definition
qwasmintegration.h:42
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
plugins
platforms
wasm
main.cpp
Generated on
for Qt by
1.16.1