无线连接按钮click信号连接

This commit is contained in:
zhangyuanyuan1 2023-03-03 15:02:57 +08:00
parent 97bd9c3f04
commit 6be128576f
1 changed files with 1 additions and 3 deletions

View File

@ -76,7 +76,7 @@ WlanItem::WlanItem(bool isSimple, QWidget *parent)
m_connectButton->setFixedSize(96, 36); m_connectButton->setFixedSize(96, 36);
m_connectButton->setText(tr("Connect")); m_connectButton->setText(tr("Connect"));
m_connectButton->setEnabled(false); m_connectButton->setEnabled(false);
// connect(m_connectButton, &QPushButton::clicked, this, &WlanItem::onConnectButtonClicked); connect(m_connectButton, &QPushButton::clicked, this, &WlanItem::onConnectButtonClicked);
m_pwdFrameLyt->addWidget(m_connectButton); m_pwdFrameLyt->addWidget(m_connectButton);
if (!isSimple) { if (!isSimple) {
@ -86,8 +86,6 @@ WlanItem::WlanItem(bool isSimple, QWidget *parent)
m_pwdLineEdit->setUseCustomPalette(true); m_pwdLineEdit->setUseCustomPalette(true);
m_connectButton->setProperty("isImportant", true); m_connectButton->setProperty("isImportant", true);
m_connectButton->setProperty("needTranslucent", true); m_connectButton->setProperty("needTranslucent", true);
} else {
connect(m_connectButton, &QPushButton::clicked, this, &WlanItem::onConnectButtonClicked);
} }
//自动连接选择区域UI //自动连接选择区域UI