Init
This commit is contained in:
37
vvoddko.cpp
Normal file
37
vvoddko.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#include "vvoddko.h"
|
||||
#include "ui_vvoddko.h"
|
||||
|
||||
vvodDKO::vvodDKO(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::vvodDKO)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
((Widget*)parent)->changeOpenWidget(this);
|
||||
|
||||
ui->lineEdit_2->setFocus();
|
||||
}
|
||||
|
||||
vvodDKO::~vvodDKO()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void vvodDKO::on_pushButton_2_clicked()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
void vvodDKO::on_pushButton_clicked()
|
||||
{
|
||||
// send
|
||||
|
||||
close();
|
||||
}
|
||||
|
||||
void vvodDKO::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
((Widget*)parent())->clearOpenWidget();
|
||||
event->accept();
|
||||
}
|
||||
Reference in New Issue
Block a user