fix(ui): modify detail-config page layout(bug#191017 #191371)

This commit is contained in:
zhangyuanyuan1 2023-09-08 14:40:27 +08:00
parent 45c1d17acb
commit 203b5adba9
1 changed files with 5 additions and 7 deletions

View File

@ -42,13 +42,11 @@ void ConfigPage::initUi()
m_congigBtn = new KBorderlessButton(this);
QWidget *centerWidget = new QWidget(this);
QGridLayout *gridLayout = new QGridLayout(centerWidget);
gridLayout->setContentsMargins(0, 0, 0, 0);
gridLayout->setVerticalSpacing(VERTICAL_SPACING);
gridLayout->addWidget(m_publicButton, 0, 0, Qt::AlignTop);
gridLayout->addWidget(m_publicLabel, 0, 1);
gridLayout->addWidget(m_privateButton, 1, 0, Qt::AlignTop);
gridLayout->addWidget(m_privateLabel, 1, 1);
QFormLayout *formLayout = new QFormLayout(centerWidget);
formLayout->setContentsMargins(0, 0, 0, 0);
formLayout->setVerticalSpacing(VERTICAL_SPACING);
formLayout->addRow(m_publicButton, m_publicLabel);
formLayout->addRow(m_privateButton, m_privateLabel);
m_vBoxLayout = new QVBoxLayout(this);
m_vBoxLayout->setContentsMargins(0, 0, 0, 0);