From 6be128576f10feeb64ebb05212a1302ff852b4dd Mon Sep 17 00:00:00 2001 From: zhangyuanyuan1 Date: Fri, 3 Mar 2023 15:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E7=BA=BF=E8=BF=9E=E6=8E=A5=E6=8C=89?= =?UTF-8?q?=E9=92=AEclick=E4=BF=A1=E5=8F=B7=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/wlanconnect/wlanitem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/wlanconnect/wlanitem.cpp b/plugins/wlanconnect/wlanitem.cpp index dcfc2816..3bbbe9d1 100644 --- a/plugins/wlanconnect/wlanitem.cpp +++ b/plugins/wlanconnect/wlanitem.cpp @@ -76,7 +76,7 @@ WlanItem::WlanItem(bool isSimple, QWidget *parent) m_connectButton->setFixedSize(96, 36); m_connectButton->setText(tr("Connect")); 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); if (!isSimple) { @@ -86,8 +86,6 @@ WlanItem::WlanItem(bool isSimple, QWidget *parent) m_pwdLineEdit->setUseCustomPalette(true); m_connectButton->setProperty("isImportant", true); m_connectButton->setProperty("needTranslucent", true); - } else { - connect(m_connectButton, &QPushButton::clicked, this, &WlanItem::onConnectButtonClicked); } //自动连接选择区域UI