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
10
12
13using namespace Qt::StringLiterals;
14
16{
17 Q_OBJECT
18 Q_PLUGIN_METADATA(IID QPlatformInputContextFactoryInterface_iid FILE "compose.json")
19
20public:
22};
23
24QComposeInputContext *QComposePlatformInputContextPlugin::create(const QString &system, const QStringList &paramList)
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
34QT_END_NAMESPACE
35
36#include "qcomposeplatforminputcontextmain.moc"