92fef6124
고영탁
환경 설정 - 설정 UI 완료
|
1
2
3
|
#include "config.h"
#include "configlanguagedlg.h"
#include "ui_configlanguagedlg.h"
|
66e60ceb5
김태훈
모든 버튼에 음향 효과 추가
|
4
|
#include "soundplayer.h"
|
92fef6124
고영탁
환경 설정 - 설정 UI 완료
|
5
6
7
8
9
10
11
12
13
14
|
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);
|
66e60ceb5
김태훈
모든 버튼에 음향 효과 추가
|
15
16
|
foreach (QPushButton *button, findChildren<QPushButton *>())
connect(button, &QPushButton::pressed, SoundPlayer::playClick);
|
92fef6124
고영탁
환경 설정 - 설정 UI 완료
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
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();
}
|