解决主界面显示问题BUG-1276;解决国产系统设置界面关于信息显示不全的问题;

This commit is contained in:
yangjiaxuan 2024-08-30 16:42:34 +08:00
parent d1edfd7ee4
commit bdc738ea62
2 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,7 @@ Widget_StatusBar::Widget_StatusBar(QAction *zoomIn, QAction *zoomOut, QWidget *p
m_lbl_scale = new QLabel("0%", toolBar);
m_lbl_scale->setFixedWidth(40);
m_lbl_scale->setAlignment(Qt::AlignHCenter);
m_lbl_scale->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
toolBar->addAction(zoomIn);
toolBar->addWidget(m_lbl_scale);

View File

@ -2023,7 +2023,11 @@ void hg_settingdialog::slot_buttonAboutClicked()
QMessageBox msg(QMessageBox::NoIcon, title,
content, QMessageBox::Ok, this);
#ifdef HG_CMP_MSC
msg.setStyleSheet("QLabel{""min-width: 280px;""}");
#else
msg.setStyleSheet("QLabel{""min-width: 300px;""}");
#endif
int code = lang_get_cur_code_page();
if (code == 1258)
msg.setStyleSheet("QLabel{""min-width: 320px;""}");