| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2013~2017 CSSlayer <[email protected]> |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#include "batchdialog.h" |
| 9 |
#include "ui_batchdialog.h" |
| 10 |
#include <QIcon> |
| 11 |
#include <fcitx-utils/i18n.h> |
| 12 |
|
| 13 |
namespace fcitx { |
| 14 |
BatchDialog::BatchDialog(QWidget *parent) : QDialog(parent) { |
| 15 |
setupUi(this); |
| 16 |
iconLabel->setPixmap(QIcon::fromTheme("dialog-information").pixmap(22, 22)); |
| 17 |
} |
| 18 |
|
| 19 |
BatchDialog::~BatchDialog() {} |
| 20 |
|
| 21 |
void BatchDialog::setText(const QString &s) { plainTextEdit->setPlainText(s); } |
| 22 |
|
| 23 |
QString BatchDialog::text() const { return plainTextEdit->toPlainText(); } |
| 24 |
} // namespace fcitx |