3f5f5d4ce
고영탁
디버깅 요청 사항 적용
|
1
2
|
#include "basicsettingwindow.h"
#include "ui_basicsettingwindow.h"
|
66e60ceb5
김태훈
모든 버튼에 음향 효과 추가
|
3
|
#include "soundplayer.h"
|
3f5f5d4ce
고영탁
디버깅 요청 사항 적용
|
4
5
6
7
8
|
BasicSettingWindow::BasicSettingWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::BasicSettingWindow)
{
ui->setupUi(this);
|
66e60ceb5
김태훈
모든 버튼에 음향 효과 추가
|
9
10
11
|
foreach (QPushButton *button, findChildren<QPushButton *>())
connect(button, &QPushButton::pressed, SoundPlayer::playClick);
|
3f5f5d4ce
고영탁
디버깅 요청 사항 적용
|
12
13
14
15
16
17
|
}
BasicSettingWindow::~BasicSettingWindow()
{
delete ui;
}
|
9e1f8d093
김태훈
엔코더 구현 대비 선행 수정
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
void BasicSettingWindow::keyPressEvent(QKeyEvent *event)
{
}
void BasicSettingWindow::keyReleaseEvent(QKeyEvent *event)
{
}
void BasicSettingWindow::onEncoderLeft()
{
focusPreviousChild();
}
void BasicSettingWindow::onEncoderRight()
{
focusNextChild();
}
void BasicSettingWindow::onEncoderClicked(QWidget *clicked)
{
QPushButton *b = qobject_cast<QPushButton *>(clicked);
if (b)
b->click();
}
|