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
plugin.mm
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
<
qpa
/
qplatformintegrationplugin
.
h
>
6
#
include
<
qpa
/
qplatformthemeplugin
.
h
>
7
#
include
"qiosintegration.h"
8
9
QT_BEGIN_NAMESPACE
10
11
using
namespace
Qt::StringLiterals;
12
13
class
QIOSIntegrationPlugin
:
public
QPlatformIntegrationPlugin
14
{
15
Q_OBJECT
16
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"ios.json"
)
17
public
:
18
QPlatformIntegration
*
create
(
const
QString
&,
const
QStringList
&);
19
};
20
21
QPlatformIntegration *
QIOSIntegrationPlugin
::create(
const
QString& system,
const
QStringList& paramList)
22
{
23
Q_UNUSED(paramList);
24
if
(!system.compare(
"ios"_L1
, Qt::CaseInsensitive)
25
|| !system.compare(
"tvos"_L1
, Qt::CaseInsensitive)) {
26
return
new
QIOSIntegration
;
27
}
28
29
return
0;
30
}
31
32
QT_END_NAMESPACE
33
34
#
include
"plugin.moc"
35
36
// Dummy function that we explicitly tell the linker to look for,
37
// so that the plugin's static initializer is included and run.
38
extern
"C"
void
qt_registerPlatformPlugin() {}
39
40
Q_IMPORT_PLUGIN(QIOSIntegrationPlugin)
QIOSIntegrationPlugin
Definition
plugin.mm:14
QIOSIntegration
Definition
qiosintegration.h:38
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platforms
ios
plugin.mm
Generated on
for Qt by
1.14.0