adjustmentwindow.cpp
1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <qdebug.h>
#include "adjustmentwindow.h"
#include "ui_adjustmentwindow.h"
#include "yesnopopupdlg.h"
#include "soundplayer.h"
AdjustmentWindow::AdjustmentWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::AdjustmentWindow)
{
ui->setupUi(this);
ui->clockContainer->setParent(ui->upperStack);
setAttribute(Qt::WA_DeleteOnClose);
foreach (QPushButton *button, findChildren<QPushButton *>())
connect(button, &QPushButton::pressed, SoundPlayer::playClick);
}
AdjustmentWindow::~AdjustmentWindow()
{
delete ui;
}
void AdjustmentWindow::on_btnAdjust_clicked()
{
YesNoPopupDlg* w = new YesNoPopupDlg(this,tr("모든 설정 값을 공장(출고)초기화\n값으로 변경 하시겠습니까?"));
//w->raise();
int dlgrst = w->exec();
dlgrst = w->result();
if(dlgrst == QDialog::Accepted) {
//Process Init Value;
qDebug() << "Accepted";
}
else qDebug() <<"Rejected";
}
void AdjustmentWindow::on_backButton_clicked()
{
close();
}