微调龙芯系统部分界面显示不全的问题

This commit is contained in:
yangjiaxuan 2023-09-04 17:24:45 +08:00
parent f01ad2c962
commit 73f5febdc1
1 changed files with 7 additions and 5 deletions

View File

@ -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<std::string> 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;");