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>
8
10
11using namespace Qt::StringLiterals;
12
14{
15 Q_OBJECT
16 Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "ios.json")
17 public:
19};
20
21QPlatformIntegration * 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
32QT_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.
38extern "C" void qt_registerPlatformPlugin() {}
39
40Q_IMPORT_PLUGIN(QIOSIntegrationPlugin)