| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2023~2023 CSSlayer <[email protected]> |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#include "main.h" |
| 9 |
#include "customphraseeditor.h" |
| 10 |
#include <fcitx-utils/i18n.h> |
| 11 |
|
| 12 |
namespace fcitx { |
| 13 |
|
| 14 |
CustomPhraseEditorPlugin::CustomPhraseEditorPlugin(QObject *parent) |
| 15 |
: FcitxQtConfigUIPlugin(parent) { |
| 16 |
registerDomain("fcitx5-chinese-addons", FCITX_INSTALL_LOCALEDIR); |
| 17 |
} |
| 18 |
|
| 19 |
FcitxQtConfigUIWidget *CustomPhraseEditorPlugin::create(const QString &key) { |
| 20 |
Q_UNUSED(key); |
| 21 |
return new CustomPhraseEditor(nullptr); |
| 22 |
} |
| 23 |
|
| 24 |
} // namespace fcitx |