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
qohosplatformplugin.cpp
Go to the documentation of this file.
1
// Copyright (C) 2025 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
4
#
include
<
qpa
/
qplatformintegrationplugin
.
h
>
5
#
include
"qohosplatformintegration.h"
6
#
include
<
QtCore
/
qdebug
.
h
>
7
8
QT_BEGIN_NAMESPACE
9
10
class
QOhosPlatformIntegrationPlugin
:
public
QPlatformIntegrationPlugin
11
{
12
Q_OBJECT
13
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"ohos.json"
)
14
public
:
15
QPlatformIntegration
*
create
(
const
QString
&
key
,
const
QStringList
&
paramList
)
override
;
16
};
17
18
QPlatformIntegration *
QOhosPlatformIntegrationPlugin
::create(
const
QString &key,
const
QStringList ¶mList)
19
{
20
auto
__dbg = make_QCScopedDebug(
"QOhosPlatformIntegrationPlugin::create"
);
21
Q_UNUSED(paramList);
22
if
(key.compare(QLatin1String(
"ohos"
), Qt::CaseInsensitive) == 0) {
23
auto
__dbg = make_QCScopedDebug(
"QOhosPlatformIntegrationPlugin::create creating "
);
24
return
new
QOhosPlatformIntegration
(paramList);
25
}
26
return
0;
27
}
28
29
QT_END_NAMESPACE
30
#
include
"qohosplatformplugin.moc"
QOhosPlatformIntegrationPlugin
Definition
qohosplatformplugin.cpp:11
QOhosPlatformIntegration
Definition
qohosplatformintegration.h:44
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
platforms
ohos
qohosplatformplugin.cpp
Generated on
for Qt by
1.16.1