Debian Codegraph @

gui/customphraseeditor/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 void EditorDialog::setOrder(int order) { orderSpinBox->setValue(order); }
21
22 QString EditorDialog::key() const { return keyLineEdit->text(); }
23
24 QString EditorDialog::value() const { return valueLineEdit->text(); }
25
26 int EditorDialog::order() const { return orderSpinBox->value(); }
27 } // namespace fcitx