8c2952457
김태훈
응용 프로그램 추가
|
1
2
|
#include "gastestwindow.h"
#include "ui_gastestwindow.h"
|
66e60ceb5
김태훈
모든 버튼에 음향 효과 추가
|
3
|
#include "soundplayer.h"
|
8c2952457
김태훈
응용 프로그램 추가
|
4
5
6
7
8
|
GasTestWindow::GasTestWindow(QWidget *parent, UdpHandler *udp) :
QMainWindow(parent),
ui(new Ui::GasTestWindow), udp(udp)
{
ui->setupUi(this);
|
6f96c947a
김태훈
GUI 0.1.4
|
9
|
|
8c2952457
김태훈
응용 프로그램 추가
|
10
|
ui->clockContainer->setParent(ui->upperStack);
|
6f96c947a
김태훈
GUI 0.1.4
|
11
|
setAttribute(Qt::WA_DeleteOnClose);
|
66e60ceb5
김태훈
모든 버튼에 음향 효과 추가
|
12
13
|
foreach (QPushButton *button, findChildren<QPushButton *>())
connect(button, &QPushButton::pressed, SoundPlayer::playClick);
|
8c2952457
김태훈
응용 프로그램 추가
|
14
15
16
17
18
19
20
21
22
23
24
25
|
connect(udp, SIGNAL(changed()), this, SLOT(onDataChanged()));
}
GasTestWindow::~GasTestWindow()
{
delete ui;
}
void GasTestWindow::onDataChanged()
{
}
|
6f96c947a
김태훈
GUI 0.1.4
|
26
27
28
29
30
|
void GasTestWindow::on_backButton_clicked()
{
close();
}
|