From c3a0610b41b2a2612fe24c0288cfa2af43392fa1 Mon Sep 17 00:00:00 2001 From: Jinxujie Date: Fri, 17 Dec 2021 10:11:48 +0800 Subject: [PATCH] =?UTF-8?q?Bug#97818=E4=BC=81=E4=B8=9Awifi=E6=9C=89?= =?UTF-8?q?=E4=B8=A4=E8=A1=8C=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enterprise-wlan/enterprisewlandialog.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/frontend/enterprise-wlan/enterprisewlandialog.cpp b/src/frontend/enterprise-wlan/enterprisewlandialog.cpp index 5caa15d2..e72e9753 100644 --- a/src/frontend/enterprise-wlan/enterprisewlandialog.cpp +++ b/src/frontend/enterprise-wlan/enterprisewlandialog.cpp @@ -19,6 +19,7 @@ EnterpriseWlanDialog::EnterpriseWlanDialog(KyWirelessNetItem &wirelessNetItem, Q #endif this->setAttribute(Qt::WA_DeleteOnClose); this->setWindowFlag(Qt::Window); + this->setWindowTitle(tr("Connect Enterprise WLAN")); m_wirelessNetItem = wirelessNetItem; m_deviceName = device; @@ -53,27 +54,12 @@ void EnterpriseWlanDialog::initUI() #define SSID_LAYOUT_MARGINS 8,8,8,0 #define MAIN_LAYOUT_SPACING 0 #define BUTTON_SPACING 8 -#define CLOSE_BUTTON_SIZE 24,24 m_mainLayout = new QVBoxLayout(this); this->setLayout(m_mainLayout); m_mainLayout->setContentsMargins(MAIN_LAYOUT_MARGINS); m_mainLayout->setSpacing(MAIN_LAYOUT_SPACING); - m_titleLayout = new QHBoxLayout(); - m_titleLabel = new QLabel(this); - m_titleLabel->setText(tr("Connect Enterprise WLAN")); - m_closeBtn = new QPushButton(this); - m_closeBtn->setFixedSize(CLOSE_BUTTON_SIZE); - m_closeBtn->setToolTip(tr("Close")); - m_closeBtn->setProperty("isWindowButton", 0x02); - m_closeBtn->setProperty("useIconHighlightEffect", 0x08); - m_closeBtn->setFlat(true); - m_closeBtn->setIcon(QIcon::fromTheme("window-close-symbolic")); - m_titleLayout->addWidget(m_titleLabel); - m_titleLayout->addStretch(); - m_titleLayout->addWidget(m_closeBtn); - m_ssidLayout = new QHBoxLayout(); m_ssidLayout->setContentsMargins(SSID_LAYOUT_MARGINS); m_ssidTitleLabel = new QLabel(this); @@ -99,8 +85,6 @@ void EnterpriseWlanDialog::initUI() m_btnLayout->addStretch(); m_btnLayout->addWidget(m_cancelBtn); m_btnLayout->addWidget(m_connectBtn); - - m_mainLayout->addLayout(m_titleLayout); m_mainLayout->addLayout(m_ssidLayout); m_mainLayout->addWidget(m_securityPage); m_mainLayout->addLayout(m_btnLayout);