53 lines
759 B
C++
53 lines
759 B
C++
#include "vvod2z.h"
|
|
#include "ui_vvod2z.h"
|
|
|
|
vvod2z::vvod2z(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::vvod2z)
|
|
{
|
|
ui->setupUi(this);
|
|
setAttribute(Qt::WA_DeleteOnClose);
|
|
|
|
((Widget*)parent)->changeOpenWidget(this);
|
|
|
|
ui->lineEdit_2->setFocus();
|
|
|
|
}
|
|
|
|
vvod2z::~vvod2z()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void vvod2z::on_pushButton_3_clicked()
|
|
{
|
|
close();
|
|
}
|
|
|
|
void vvod2z::on_pushButton_clicked()
|
|
{
|
|
curCode = ui->lineEdit_2->text().toInt();
|
|
|
|
|
|
close();
|
|
}
|
|
|
|
void vvod2z::on_pushButton_2_clicked()
|
|
{
|
|
t2z = new table2Z(this);
|
|
t2z->show();
|
|
|
|
}
|
|
|
|
void vvod2z::msUpdate()
|
|
{
|
|
ui->lineEdit_2->setText(QString::number(curCode));
|
|
|
|
}
|
|
|
|
void vvod2z::closeEvent(QCloseEvent *event)
|
|
{
|
|
((Widget*)parent())->clearOpenWidget();
|
|
event->accept();
|
|
}
|