You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
529 B
27 lines
529 B
4 months ago
|
#include "wifipassworddialog.h"
|
||
|
#include "ui_wifipassworddialog.h"
|
||
|
|
||
|
WifiPasswordDialog::WifiPasswordDialog(QString ssid, QWidget *parent) :
|
||
|
QDialog(parent),
|
||
|
ui(new Ui::WifiPasswordDialog)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
ui->wifiLabel->setText(tr("Enter password for %1:").arg(ssid));
|
||
|
}
|
||
|
|
||
|
WifiPasswordDialog::~WifiPasswordDialog()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
void WifiPasswordDialog::onConnectClicked()
|
||
|
{
|
||
|
password = ui->passwordBox->text();
|
||
|
this->done(0);
|
||
|
}
|
||
|
|
||
|
QString WifiPasswordDialog::getPassword()
|
||
|
{
|
||
|
return password;
|
||
|
}
|