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
qcomposeplatforminputcontextmain.cpp
Go to the documentation of this file.
1
// Copyright (C) 2019 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
/
qplatforminputcontextplugin_p
.
h
>
6
7
#
include
<
QtCore
/
QStringList
>
8
9
#
include
"qcomposeplatforminputcontext.h"
10
11
QT_BEGIN_NAMESPACE
12
13
using
namespace
Qt::StringLiterals;
14
15
class
QComposePlatformInputContextPlugin
:
public
QPlatformInputContextPlugin
16
{
17
Q_OBJECT
18
Q_PLUGIN_METADATA(IID QPlatformInputContextFactoryInterface_iid FILE
"compose.json"
)
19
20
public
:
21
QComposeInputContext
*
create
(
const
QString
&,
const
QStringList
&)
override
;
22
};
23
24
QComposeInputContext
*
QComposePlatformInputContextPlugin
::create(
const
QString &system,
const
QStringList ¶mList)
25
{
26
Q_UNUSED(paramList);
27
28
if
(system.compare(system,
"compose"_L1
, Qt::CaseInsensitive) == 0
29
|| system.compare(system,
"xim"_L1
, Qt::CaseInsensitive) == 0)
30
return
new
QComposeInputContext
;
31
return
nullptr
;
32
}
33
34
QT_END_NAMESPACE
35
36
#
include
"qcomposeplatforminputcontextmain.moc"
QComposeInputContext
Definition
qcomposeplatforminputcontext.h:22
QComposePlatformInputContextPlugin
Definition
qcomposeplatforminputcontextmain.cpp:16
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platforminputcontexts
compose
qcomposeplatforminputcontextmain.cpp
Generated on
for Qt by
1.14.0