#include #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()) 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(); }