TalkToMe/connect.cpp

28 lines
364 B
C++
Raw Normal View History

2021-02-06 00:51:42 +01:00
#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();
}