This commit is contained in:
2025-07-02 07:45:34 +03:00
parent a4135d45d8
commit 1fee25a38c
121 changed files with 16425 additions and 0 deletions

37
texit.cpp Normal file
View File

@@ -0,0 +1,37 @@
#include "texit.h"
#include "ui_texit.h"
#include "widget.h"
#include <QTimer>
Texit::Texit(QWidget *parent) :
QDialog(parent),
ui(new Ui::Texit)
{
ui->setupUi(this);
((Widget*)parent)->changeOpenWidget(this);
setAttribute(Qt::WA_DeleteOnClose);
}
Texit::~Texit()
{
delete ui;
}
void Texit::on_pushButton_2_clicked()
{
close();
}
void Texit::on_pushButton_clicked()
{
((Widget*)parent())->writeFile();
QTimer::singleShot(500, (Widget*)parent(), SLOT(MyClose()));
close();
}
void Texit::closeEvent(QCloseEvent *e)
{
((Widget*)parent())->clearOpenWidget();
e->accept();
}