Fix align center bug of AdminSettingForm
This commit is contained in:
@@ -73,10 +73,14 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
|
||||
stackedWidget->setCurrentIndex(rowindex);
|
||||
});
|
||||
connect(EventCenter::Default(),&EventCenter::ReloadLanguage,[=](){
|
||||
QStringList menus;
|
||||
menus << tr("General") << tr("Account Manage") << tr("System Setting") << tr("System Information") << tr("Operation Log") << tr("About");
|
||||
QStringList menus2;
|
||||
menus2 << tr("General") << tr("Account Manage") << tr("System Setting") << tr("System Information") << tr("Operation Log") << tr("About");
|
||||
widget->clear();
|
||||
widget->addItems(menus);
|
||||
|
||||
widget->addItems(menus2);
|
||||
for (int i = 0; i < menus.count(); ++i) {
|
||||
widget->item(i)->setTextAlignment(Qt::AlignCenter);
|
||||
}
|
||||
about->setText(tr("About"));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user