#include "config.h" #include "configlanguagedlg.h" #include "ui_configlanguagedlg.h" using namespace Define; ConfigLanguageDlg::ConfigLanguageDlg(QWidget *parent) : QDialog(parent), ui(new Ui::ConfigLanguageDlg) { ui->setupUi(this); this->setWindowFlags( Qt::FramelessWindowHint); this->setAttribute( Qt::WA_DeleteOnClose); ui->pushButton_1->setText(tr(language_menu[0])); ui->pushButton_2->setText(tr(language_menu[1])); ui->pushButton_3->setText(tr(language_menu[2])); } ConfigLanguageDlg::~ConfigLanguageDlg() { delete ui; } void ConfigLanguageDlg::on_ctrBtnOk_clicked() { this->accept(); } void ConfigLanguageDlg::on_ctrBtnCancel_clicked() { this->reject(); }