32 lines
499 B
C++
32 lines
499 B
C++
#include "infomessagebox.h"
|
|
#include "ui_infomessagebox.h"
|
|
|
|
InfoMessageBox::InfoMessageBox(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::InfoMessageBox)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
void InfoMessageBox::setMessage(const QString message)
|
|
{
|
|
ui->txtMessage->setText(message);
|
|
}
|
|
|
|
InfoMessageBox::~InfoMessageBox()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void InfoMessageBox::showMessage(const QString message)
|
|
{
|
|
setMessage(message);
|
|
exec();
|
|
}
|
|
|
|
void InfoMessageBox::on_btnOk_clicked()
|
|
{
|
|
accept();
|
|
}
|
|
|