Qt 6.x
The Qt SDK
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
4#include <qpa/qplatforminputcontextplugin_p.h>
5
6#include <QtCore/QStringList>
7
9
11
12using namespace Qt::StringLiterals;
13
15{
18
19public:
20 QComposeInputContext *create(const QString &, const QStringList &) override;
21};
22
24{
25 Q_UNUSED(paramList);
26
27 if (system.compare(system, "compose"_L1, Qt::CaseInsensitive) == 0
28 || system.compare(system, "xim"_L1, Qt::CaseInsensitive) == 0)
29 return new QComposeInputContext;
30 return nullptr;
31}
32
34
35#include "qcomposeplatforminputcontextmain.moc"
QComposeInputContext * create(const QString &, const QStringList &) override
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
int compare(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
Definition qstring.cpp:6498
Combined button and popup list for selecting options.
@ CaseInsensitive
#define QPlatformInputContextFactoryInterface_iid
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
#define Q_UNUSED(x)
view create()