yesnopopupdlg.cpp 706 Bytes
#include "yesnopopupdlg.h"
#include "ui_yesnopopupdlg.h"

YesNoPopupDlg::YesNoPopupDlg(QWidget *parent, QString strDesc) :
    QDialog(parent),
    ui(new Ui::YesNoPopupDlg)
{
    ui->setupUi(this);
    this->setAttribute( Qt::WA_DeleteOnClose);
    setWindowFlags(Qt::FramelessWindowHint);
    setAttribute(Qt::WA_NoSystemBackground);
    setAttribute(Qt::WA_TranslucentBackground);
    //setAttribute(Qt::WA_PaintOnScreen);



    ui->ctrLbDesc->setText(strDesc);

    //this->setAttribute( Qt::WA_DeleteOnClose);
}

YesNoPopupDlg::~YesNoPopupDlg()
{
    delete ui;
}

void YesNoPopupDlg::on_ctrBtnYes_clicked()
{
    this->accept();

}

void YesNoPopupDlg::on_ctrBtnNo_clicked()
{
    this->reject();
}