From 7f3449cc479761dcf3de9dd4f667f53b055bac3e Mon Sep 17 00:00:00 2001 From: Bai Bing Date: Fri, 21 Apr 2023 16:05:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=96=B0?= =?UTF-8?q?=E5=BB=BAvpn=E5=92=8C=E6=97=A0=E7=BA=BF=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E4=B8=AD=E5=AF=BC=E5=87=BA=E5=92=8C=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E7=9A=84button=E4=B8=8E=E5=BC=B9=E7=AA=97=E9=97=B4?= =?UTF-8?q?=E8=B7=9D=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了新建vpn和无线网络弹窗中导出与取消、保存的button与弹窗间距不一 致的问题。 Issue: #141 Log: 修复了新建vpn和无线网络弹窗中导出和保存的button与弹窗间距不一致的问题 --- dcc-network-plugin/window/editpage/connectioneditpage.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dcc-network-plugin/window/editpage/connectioneditpage.cpp b/dcc-network-plugin/window/editpage/connectioneditpage.cpp index 24135533..c567a3bb 100644 --- a/dcc-network-plugin/window/editpage/connectioneditpage.cpp +++ b/dcc-network-plugin/window/editpage/connectioneditpage.cpp @@ -456,7 +456,10 @@ int ConnectionEditPage::connectionSuffixNum(const QString &matchConnName) void ConnectionEditPage::addHeaderButton(QPushButton *button) { - m_mainLayout->insertWidget(m_mainLayout->indexOf(m_buttonTuple_conn) + 1, button); + QVBoxLayout *headerButtonLayout = new QVBoxLayout(); + headerButtonLayout->addWidget(button); + headerButtonLayout->setContentsMargins(10, 0, 10, 0); + m_mainLayout->insertLayout(m_mainLayout->indexOf(m_buttonTuple_conn) + 1, headerButtonLayout); } bool ConnectionEditPage::eventFilter(QObject *obj, QEvent *event)