28 lines
364 B
C++
28 lines
364 B
C++
|
#include "connect.h"
|
||
|
#include "ui_connect.h"
|
||
|
|
||
|
Connect::Connect(QWidget *parent) :
|
||
|
QDialog(parent),
|
||
|
ui(new Ui::Connect)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
}
|
||
|
|
||
|
Connect::~Connect()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
void Connect::on_accept_clicked()
|
||
|
{
|
||
|
mHost = ui->hostname->text();
|
||
|
mPort = ui->port->value();
|
||
|
accept();
|
||
|
}
|
||
|
|
||
|
void Connect::on_back_clicked()
|
||
|
{
|
||
|
reject();
|
||
|
|
||
|
}
|