Init
This commit is contained in:
52
vvod2z.cpp
Normal file
52
vvod2z.cpp
Normal file
@@ -0,0 +1,52 @@
|
||||
#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();
|
||||
}
|
||||
Reference in New Issue
Block a user