confirmpopup.cpp
448 Bytes
#include "confirmpopup.h"
#include "ui_confirmpopup.h"
ConfirmPopup::ConfirmPopup(QWidget *parent, QString text) :
QWidget(parent),
ui(new Ui::ConfirmPopup)
{
ui->setupUi(this);
ui->text->setText(text);
}
ConfirmPopup::~ConfirmPopup()
{
delete ui;
}
void ConfirmPopup::on_okButton_clicked()
{
deleteLater();
emit accepted();
}
void ConfirmPopup::on_cancelButton_clicked()
{
deleteLater();
emit rejected();
}