| 1 |
#include "../util.h" |
| 2 |
#include "hime-qt.h" |
| 3 |
#include <cstdio> |
| 4 |
|
| 5 |
#define HIMEID "hime" |
| 6 |
|
| 7 |
QStringList QHimePlatformInputContextPlugin::keys () const { |
| 8 |
dbg ("QStringList QHimePlatformInputContextPlugin::keys()\n"); |
| 9 |
return QStringList (QStringLiteral (HIMEID)); |
| 10 |
} |
| 11 |
|
| 12 |
QHimePlatformInputContext *QHimePlatformInputContextPlugin::create (const QString &system, const QStringList ¶mList) { |
| 13 |
Q_UNUSED (paramList); |
| 14 |
dbg ("QHimePlatformInputContextPlugin::create()\n"); |
| 15 |
|
| 16 |
if (system.compare (system, QStringLiteral (HIMEID), Qt::CaseInsensitive) == 0) |
| 17 |
return new QHimePlatformInputContext; |
| 18 |
return 0; |
| 19 |
} |