Sh3/showcrc.cpp
2025-07-02 07:45:34 +03:00

29 lines
453 B
C++

#include "showcrc.h"
#include "ui_showcrc.h"
showCRC::showCRC(QWidget *parent) :
QDialog(parent),
ui(new Ui::showCRC)
{
ui->setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
((Widget*)parent)->changeOpenWidget(this);
}
showCRC::~showCRC()
{
delete ui;
}
void showCRC::on_pushButton_clicked()
{
close();
}
void showCRC::closeEvent(QCloseEvent *event)
{
((Widget*)parent())->clearOpenWidget();
event->accept();
}