Debian Codegraph @

qt5/platforminputcontext/main.cpp

raw
1 /*
2 * SPDX-FileCopyrightText: 2012~2017 CSSlayer <[email protected]>
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8 #include "main.h"
9
10 fcitx::QFcitxPlatformInputContext *
11 QFcitx5PlatformInputContextPlugin::create(const QString &system,
12 const QStringList &paramList) {
13 Q_UNUSED(paramList);
14 if (system.compare(system, QStringLiteral("fcitx5"), Qt::CaseInsensitive) ==
15 0 ||
16 system.compare(system, QStringLiteral("fcitx"), Qt::CaseInsensitive) ==
17 0) {
18 return new fcitx::QFcitxPlatformInputContext;
19 }
20 return 0;
21 }