From 4fef15a3fb097938273c26ce6050efc422c8bc52 Mon Sep 17 00:00:00 2001 From: zhangyuanyuan1 Date: Wed, 10 Aug 2022 09:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=A1=B5=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E9=94=99=E4=BD=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/netdetails/detailwidget.cpp | 2 +- src/frontend/netdetails/securitypage.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/netdetails/detailwidget.cpp b/src/frontend/netdetails/detailwidget.cpp index 2b63e1a2..b7a030fb 100644 --- a/src/frontend/netdetails/detailwidget.cpp +++ b/src/frontend/netdetails/detailwidget.cpp @@ -24,7 +24,7 @@ #define ITEM_HEIGHT 36 #define ITEM_MARGINS 18,0,16,0 -#define MIN_LABEL_WIDTH 150 +#define MIN_LABEL_WIDTH 146 #define MAX_LABEL_WIDTH 154 #define MAX_WIDGET_WIDTH 270 diff --git a/src/frontend/netdetails/securitypage.cpp b/src/frontend/netdetails/securitypage.cpp index 146dc9a5..d8ebdcd5 100644 --- a/src/frontend/netdetails/securitypage.cpp +++ b/src/frontend/netdetails/securitypage.cpp @@ -25,7 +25,7 @@ #define DETAIL_MIN_LABEL_WIDTH 80 #define DETAIL_MIN_EDIT_WIDTH 390 #define MIN_LABEL_WIDTH 146 -#define MIN_EDIT_WIDTH 286 +#define MIN_EDIT_WIDTH 278 SecurityPage::SecurityPage(bool isNetDetailPage, QWidget *parent) : isDetailPage(isNetDetailPage), QFrame(parent) { @@ -159,6 +159,7 @@ void SecurityPage::initUI() bottomLayout = new QGridLayout(tlsWidget); bottomLayout->setContentsMargins(0, 0, 0, 0); bottomLayout->setVerticalSpacing(8); + bottomLayout->setHorizontalSpacing(0); // 域 Label和输入框 第0行,第0列,第1列 bottomLayout->addWidget(domainLable, 0, 0); bottomLayout->addWidget(domainEdit, 0, 1);