From 73f5febdc1a4ada6ddef229a5e643def74aca202 Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Mon, 4 Sep 2023 17:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E9=BE=99=E8=8A=AF=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E9=83=A8=E5=88=86=E7=95=8C=E9=9D=A2=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=85=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/twainui/hg_settingdialog.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/twainui/hg_settingdialog.cpp b/modules/twainui/hg_settingdialog.cpp index 1366034d..d7865c78 100644 --- a/modules/twainui/hg_settingdialog.cpp +++ b/modules/twainui/hg_settingdialog.cpp @@ -318,9 +318,11 @@ void hg_settingdialog::create_scheme_management_ui(QVBoxLayout* layout) QHBoxLayout *hLayout = new QHBoxLayout(); int width = 180; int width2 = 100; + int space = 10; #if defined (loongarch64) width2 = 120; + space = 5; #endif std::vector schemes; @@ -349,7 +351,7 @@ void hg_settingdialog::create_scheme_management_ui(QVBoxLayout* layout) layout->addWidget(title); layout->addWidget(comb_); - layout->addSpacing(10); + layout->addSpacing(space); m_pbtn_addNew = new QPushButton(this); m_pbtn_addNew->setText(tr("Add new")); @@ -357,7 +359,7 @@ void hg_settingdialog::create_scheme_management_ui(QVBoxLayout* layout) layout->addWidget(m_pbtn_addNew); connect(m_pbtn_addNew, SIGNAL(clicked(bool)), this, SLOT(slot_pushButton_scheme_management())); - layout->addSpacing(10); + layout->addSpacing(space); m_pbtn_Save = new QPushButton(this); m_pbtn_Save->setText(tr("Save")); @@ -365,7 +367,7 @@ void hg_settingdialog::create_scheme_management_ui(QVBoxLayout* layout) layout->addWidget(m_pbtn_Save); connect(m_pbtn_Save, SIGNAL(clicked(bool)), this, SLOT(slot_pushButton_scheme_management())); - layout->addSpacing(10); + layout->addSpacing(space); m_deleteCur = new QPushButton(this); m_deleteCur->setText(tr("Delete")); @@ -374,7 +376,7 @@ void hg_settingdialog::create_scheme_management_ui(QVBoxLayout* layout) layout->addWidget(m_deleteCur); connect(m_deleteCur, SIGNAL(clicked(bool)), this, SLOT(slot_pushButton_scheme_management())); - layout->addSpacing(10); + layout->addSpacing(space); m_deleteAll = new QPushButton(this); m_deleteAll->setText(tr("Delete all")); @@ -383,7 +385,7 @@ void hg_settingdialog::create_scheme_management_ui(QVBoxLayout* layout) layout->addWidget(m_deleteAll); connect(m_deleteAll, SIGNAL(clicked(bool)), this, SLOT(slot_pushButton_scheme_management())); - layout->addSpacing(10); + layout->addSpacing(space); m_label_restore->setWordWrap(true); m_label_restore->setStyleSheet("color:red;");