translation improvements 1
This commit is contained in:
@@ -21,13 +21,13 @@
|
||||
AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabFormWidget(parent) {
|
||||
|
||||
QHBoxLayout* layout = new QHBoxLayout(this);
|
||||
layout->setMargin(0);
|
||||
layout->setContentsMargins(0,8,0,8);
|
||||
layout->setMargin(0);
|
||||
layout->setContentsMargins(0, 8, 0, 8);
|
||||
this->ui->contentWidget->setLayout(layout);
|
||||
QListWidget* widget = new QListWidget(this);
|
||||
widget->setFixedWidth(250);
|
||||
QStringList menus;
|
||||
menus << tr("General") << tr("Account Manage") << tr("System Setting") << tr("System Information") << tr("Operation Log") << tr("About");
|
||||
menus << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("Log") << tr("About");
|
||||
widget->addItems(menus);
|
||||
widget->setSpacing(3);
|
||||
for (int i = 0; i < menus.count(); ++i) {
|
||||
@@ -46,7 +46,7 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
|
||||
GeneralForm* generalForm = new GeneralForm(this);
|
||||
stackedWidget->addWidget(generalForm);
|
||||
|
||||
AccountTableForm* acc = new AccountTableForm(this);
|
||||
AccountTableForm* acc = new AccountTableForm(this);
|
||||
|
||||
stackedWidget->addWidget(acc);
|
||||
|
||||
@@ -71,18 +71,18 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
|
||||
widget->setCurrentRow(0);
|
||||
connect(widget, &QListWidget::currentRowChanged, [=](int rowindex) {
|
||||
stackedWidget->setCurrentIndex(rowindex);
|
||||
});
|
||||
connect(EventCenter::Default(),&EventCenter::ReloadLanguage,[=](){
|
||||
QStringList menus2;
|
||||
menus2 << tr("General") << tr("Account Manage") << tr("System Setting") << tr("System Information") << tr("Operation Log") << tr("About");
|
||||
widget->clear();
|
||||
});
|
||||
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
|
||||
QStringList menus2;
|
||||
menus2 << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("Log") << tr("About");
|
||||
widget->clear();
|
||||
|
||||
widget->addItems(menus2);
|
||||
for (int i = 0; i < menus.count(); ++i) {
|
||||
widget->item(i)->setTextAlignment(Qt::AlignCenter);
|
||||
}
|
||||
about->setText(tr("About"));
|
||||
});
|
||||
widget->addItems(menus2);
|
||||
for (int i = 0; i < menus.count(); ++i) {
|
||||
widget->item(i)->setTextAlignment(Qt::AlignCenter);
|
||||
}
|
||||
about->setText(tr("About"));
|
||||
});
|
||||
}
|
||||
|
||||
AdminSettingForm::~AdminSettingForm() {
|
||||
|
||||
Reference in New Issue
Block a user