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) 2019 BogDan Vatra <bogdan@kde.org>
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
5
#
include
<
qpa
/
qplatformintegrationplugin
.
h
>
6
#
include
"qandroidplatformintegration.h"
7
8
QT_BEGIN_NAMESPACE
9
10
using
namespace
Qt::StringLiterals;
11
12
class
QAndroidIntegrationPlugin
:
public
QPlatformIntegrationPlugin
13
{
14
Q_OBJECT
15
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"android.json"
)
16
17
public
:
18
QPlatformIntegration
*
create
(
const
QString
&
system
,
const
QStringList
&
paramList
)
override
;
19
};
20
21
QPlatformIntegration *
QAndroidIntegrationPlugin
::create(
const
QString& system,
const
QStringList& paramList)
22
{
23
if
(!system.compare(
"android"_L1
, Qt::CaseInsensitive))
24
return
new
QAndroidPlatformIntegration
(paramList);
25
26
return
nullptr
;
27
}
28
29
QT_END_NAMESPACE
30
#
include
"main.moc"
QAndroidIntegrationPlugin
Definition
main.cpp:13
QAndroidPlatformIntegration
Definition
qandroidplatformintegration.h:47
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platforms
android
main.cpp
Generated on
for Qt by
1.14.0