From 1441db34f52a8fa69bac3e282efb835f0685b87f Mon Sep 17 00:00:00 2001 From: zhangyuanyuan1 Date: Wed, 3 Aug 2022 11:07:05 +0800 Subject: [PATCH] =?UTF-8?q?bug=20132228=20=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E4=B8=8E=E6=A0=87=E9=A2=98=E6=A0=8F=E9=97=B4=E9=9A=94?= =?UTF-8?q?=20=E6=96=87=E6=9C=AC=E5=AD=97=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/networkmode/firewalldialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/networkmode/firewalldialog.cpp b/src/frontend/networkmode/firewalldialog.cpp index e215eab8..d9a4265c 100644 --- a/src/frontend/networkmode/firewalldialog.cpp +++ b/src/frontend/networkmode/firewalldialog.cpp @@ -46,7 +46,7 @@ void FirewallDialog::initUI() QWidget *contentWidget = new QWidget(this); QGridLayout *contentLayout = new QGridLayout(contentWidget); contentLayout->setContentsMargins(0, 0, 0, 0); - contentLayout->addWidget(m_iconLabel, 0, 0, Qt::AlignTop); + contentLayout->addWidget(m_iconLabel, 0, 0, Qt::AlignVCenter); contentLayout->addWidget(m_contentLabel, 0, 1); contentLayout->addWidget(m_suggestLabel, 1, 1); m_iconLabel->setFixedWidth(16); @@ -59,7 +59,7 @@ void FirewallDialog::initUI() btnLayout->addWidget(m_YesBtn); btnLayout->addWidget(m_NoBtn); - m_dialogLayout->setContentsMargins(24, 0, 24, 24); + m_dialogLayout->setContentsMargins(24, 16, 24, 24); m_dialogLayout->setSpacing(0); m_dialogLayout->addWidget(contentWidget); m_dialogLayout->addStretch(); @@ -69,7 +69,7 @@ void FirewallDialog::initUI() m_iconLabel->setPixmap(icon.pixmap(ICON_SIZE)); QFont font = m_contentLabel->font(); - font.setWeight(75); + font.setWeight(57); m_contentLabel->setFont(font); //是否允许你的电脑被此网络上的其他电脑和设备发现? m_contentLabel->setText(tr("Allow your computer to be discovered by other computers and devices on this network?"));