mirror of
https://github.com/MelanieT/OpenSimConsoleClient.git
synced 2026-08-14 17:12:00 +00:00
34 lines
578 B
C++
34 lines
578 B
C++
#include "addconndialog.h"
|
|
#include "ui_addconndialog.h"
|
|
|
|
AddConnDialog::AddConnDialog(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::AddConnDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
Name = ui->Name;
|
|
Host = ui->Host;
|
|
Port = ui->Port;
|
|
User = ui->User;
|
|
Pass = ui->Pass;
|
|
|
|
connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(OnOK()));
|
|
connect(ui->buttonBox, SIGNAL(rejected()), this, SLOT(OnCancel()));
|
|
}
|
|
|
|
AddConnDialog::~AddConnDialog()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void AddConnDialog::OnOK()
|
|
{
|
|
done(0);
|
|
}
|
|
|
|
void AddConnDialog::OnCancel()
|
|
{
|
|
done(-1);
|
|
}
|