adjustmentwindow.cpp 704 Bytes
#include <qdebug.h>
#include "adjustmentwindow.h"
#include "ui_adjustmentwindow.h"
#include "yesnopopupdlg.h"

AdjustmentWindow::AdjustmentWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::AdjustmentWindow)
{
    ui->setupUi(this);
}

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";
}