-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbccrdialog.cpp
More file actions
25 lines (20 loc) · 905 Bytes
/
bccrdialog.cpp
File metadata and controls
25 lines (20 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "bccrdialog.h"
#include "ui_bccrdialog.h"
#include "mainwindow.h"
BCCRDialog::BCCRDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::BCCRDialog)
{
ui->setupUi(this);
setFixedSize(this->width(), this->height());
this->move(QPoint(this->parentWidget()->x() - (this->width() - this->parentWidget()->width())/2, this->parentWidget()->y() - (this->height() - this->parentWidget()->height())/2 - 20));
}
BCCRDialog::~BCCRDialog()
{
delete ui;
}
void BCCRDialog::setupSLOT(QMainWindow* dialog){
connect(ui->lineEdit, SIGNAL(textChanged(QString)), dynamic_cast<MainWindow*>(dialog), SLOT(setAirWndSize(const QString)));
connect(ui->lineEdit_2, SIGNAL(textChanged(QString)), dynamic_cast<MainWindow*>(dialog), SLOT(setBoundWndSize(const QString)));
connect(ui->lineEdit_3, SIGNAL(textChanged(QString)), dynamic_cast<MainWindow*>(dialog), SLOT(setRegLamda(const QString)));
}