|
|
@ -1,11 +1,14 @@
|
|
|
|
#include "wifipassworddialog.h"
|
|
|
|
#include "wifipassworddialog.h"
|
|
|
|
#include "ui_wifipassworddialog.h"
|
|
|
|
#include "ui_wifipassworddialog.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <QCloseEvent>
|
|
|
|
|
|
|
|
|
|
|
|
WifiPasswordDialog::WifiPasswordDialog(QString ssid, QWidget *parent) :
|
|
|
|
WifiPasswordDialog::WifiPasswordDialog(QString ssid, QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::WifiPasswordDialog)
|
|
|
|
ui(new Ui::WifiPasswordDialog)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
|
|
|
|
|
|
|
ui->wifiLabel->setText(tr("Enter password for %1:").arg(ssid));
|
|
|
|
ui->wifiLabel->setText(tr("Enter password for %1:").arg(ssid));
|
|
|
|
connect(ui->connectButton, &QPushButton::clicked, this, &WifiPasswordDialog::onConnectClicked);
|
|
|
|
connect(ui->connectButton, &QPushButton::clicked, this, &WifiPasswordDialog::onConnectClicked);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -25,3 +28,8 @@ QString WifiPasswordDialog::getPassword()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return password;
|
|
|
|
return password;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void WifiPasswordDialog::closeEvent(QCloseEvent *event)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
event->ignore();
|
|
|
|
|
|
|
|
}
|
|
|
|