安全页布局错位问题

This commit is contained in:
zhangyuanyuan1 2022-08-10 09:28:31 +08:00
parent c2ef891419
commit 4fef15a3fb
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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);