Debian Codegraph @

qt6/quickphrase-editor/editordialog.cpp

raw
1 /*
2 * SPDX-FileCopyrightText: 2017~2017 CSSlayer <[email protected]>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 */
7
8 #include "editordialog.h"
9 #include <fcitx-utils/i18n.h>
10
11 namespace fcitx {
12 EditorDialog::EditorDialog(QWidget *parent) : QDialog(parent) { setupUi(this); }
13
14 EditorDialog::~EditorDialog() {}
15
16 void EditorDialog::setKey(const QString &s) { keyLineEdit->setText(s); }
17
18 void EditorDialog::setValue(const QString &s) { valueLineEdit->setText(s); }
19
20 QString EditorDialog::key() const { return keyLineEdit->text(); }
21
22 QString EditorDialog::value() const { return valueLineEdit->text(); }
23 } // namespace fcitx