22f83e90f
김태훈
모델 설정 UI 추가
|
1
2
3
4
5
|
#include "modelsettingwindow.h"
#include "ui_modelsettingwindow.h"
#include "electricmodelsettingwindow.h"
#include "gasmodelsettingwindow.h"
|
66e60ceb5
김태훈
모든 버튼에 음향 효과 추가
|
6
|
#include "soundplayer.h"
|
22f83e90f
김태훈
모델 설정 UI 추가
|
7
8
9
10
11
12
13
14
15
|
ModelSettingWindow::ModelSettingWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ModelSettingWindow)
{
ui->setupUi(this);
ui->clockContainer->setParent(ui->upperStack);
setAttribute(Qt::WA_DeleteOnClose);
|
66e60ceb5
김태훈
모든 버튼에 음향 효과 추가
|
16
17
18
|
foreach (QPushButton *button, findChildren<QPushButton *>())
connect(button, &QPushButton::pressed, SoundPlayer::playClick);
|
22f83e90f
김태훈
모델 설정 UI 추가
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
}
ModelSettingWindow::~ModelSettingWindow()
{
delete ui;
}
void ModelSettingWindow::on_electricButton_clicked()
{
ElectricModelSettingWindow *w = new ElectricModelSettingWindow(this);
w->showFullScreen();
}
void ModelSettingWindow::on_gasButton_clicked()
{
GasModelSettingWindow *w = new GasModelSettingWindow(this);
w->showFullScreen();
}
void ModelSettingWindow::on_backButton_clicked()
{
close();
}
|