translation improvement
This commit is contained in:
@@ -27,7 +27,8 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
|
||||
QListWidget* widget = new QListWidget(this);
|
||||
widget->setFixedWidth(250);
|
||||
QStringList menus;
|
||||
menus << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("Log") << tr("About");
|
||||
//menus << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("Log") << tr("About");
|
||||
menus << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("About");
|
||||
widget->addItems(menus);
|
||||
widget->setSpacing(3);
|
||||
for (int i = 0; i < menus.count(); ++i) {
|
||||
@@ -61,9 +62,8 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
|
||||
Info->setText("info");
|
||||
stackedWidget->addWidget(Info);
|
||||
|
||||
UserOperationLogForm* operationLogForm = new UserOperationLogForm(this);
|
||||
|
||||
stackedWidget->addWidget(operationLogForm);
|
||||
//UserOperationLogForm* operationLogForm = new UserOperationLogForm(this);
|
||||
//stackedWidget->addWidget(operationLogForm);
|
||||
|
||||
QLabel* about = new QLabel(this);
|
||||
about->setText(tr("About"));
|
||||
@@ -74,9 +74,8 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
|
||||
});
|
||||
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
|
||||
QStringList menus2;
|
||||
menus2 << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("Log") << tr("About");
|
||||
menus2 << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("About");
|
||||
widget->clear();
|
||||
|
||||
widget->addItems(menus2);
|
||||
for (int i = 0; i < menus.count(); ++i) {
|
||||
widget->item(i)->setTextAlignment(Qt::AlignCenter);
|
||||
|
||||
Reference in New Issue
Block a user