| 1 |
/* |
| 2 |
* Copyright (C) 2012~2017 by CSSlayer |
| 3 |
* [email protected] |
| 4 |
* |
| 5 |
* Redistribution and use in source and binary forms, with or without |
| 6 |
* modification, are permitted provided that the following conditions |
| 7 |
* are met: |
| 8 |
* |
| 9 |
* 1. Redistributions of source code must retain the above Copyright |
| 10 |
* notice, this list of conditions and the following disclaimer. |
| 11 |
* |
| 12 |
* 2. Redistributions in binary form must reproduce the above Copyright |
| 13 |
* notice, this list of conditions and the following disclaimer in the |
| 14 |
* documentation and/or other materials provided with the distribution. |
| 15 |
* |
| 16 |
* 3. Neither the name of the authors nor the names of its contributors |
| 17 |
* may be used to endorse or promote products derived from this |
| 18 |
* software without specific prior written permission. |
| 19 |
*/ |
| 20 |
|
| 21 |
#include "main.h" |
| 22 |
|
| 23 |
QStringList QFcitxPlatformInputContextPlugin::keys() const { |
| 24 |
return QStringList(QStringLiteral("fcitx")); |
| 25 |
} |
| 26 |
|
| 27 |
QFcitxPlatformInputContext * |
| 28 |
QFcitxPlatformInputContextPlugin::create(const QString &system, |
| 29 |
const QStringList ¶mList) { |
| 30 |
Q_UNUSED(paramList); |
| 31 |
if (system.compare(system, QStringLiteral("fcitx"), Qt::CaseInsensitive) == |
| 32 |
0) |
| 33 |
return new QFcitxPlatformInputContext; |
| 34 |
return 0; |
| 35 |
} |