英文翻译为中文
This commit is contained in:
parent
2c760cb233
commit
7eb91b004d
|
@ -33,5 +33,6 @@
|
|||
<file alias="/images/empty.png">resource/images/empty.png</file>
|
||||
<file alias="/images/empty_dark.png">resource/images/empty_dark.png</file>
|
||||
<file alias="/symbos/document-open-recent-symbolic.png">resource/symbos/document-open-recent-symbolic.png</file>
|
||||
<file alias="/language/qt_zh_CN.qm">resource/language/qt_zh_CN.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -17,6 +17,7 @@ BackupListWidget::BackupListWidget(QWidget *parent /*= nullptr*/) :
|
|||
m_plusLogo = new MyIconLabel;
|
||||
m_plusLogo->setFixedHeight(36);
|
||||
m_plusLogo->setThemeIcon("list-add-symbolic", ":/symbos/list-add-symbolic.png");
|
||||
// 文件拖放区域
|
||||
m_plusLogo->setDesplayText(tr("File drag and drop area"));
|
||||
m_plusLogo->setEnabled(false);
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ DeleteBackupDialog::DeleteBackupDialog(ParseBackupList::BackupPoint backupPonit,
|
|||
// 标题
|
||||
m_titleLabel = new MyLabel;
|
||||
m_titleLabel->setFixedSize(380, 30);
|
||||
// 正在删除数据,请稍候
|
||||
m_titleLabel->setDeplayText(tr("Please wait while data is being removed"));
|
||||
m_titleLabel->setToolTip(tr("Please wait while data is being removed"));
|
||||
|
||||
|
|
|
@ -64,22 +64,22 @@ QString FuncTypeConverter::keycodeToThemeIconString(int code)
|
|||
QString nameString;
|
||||
switch (code) {
|
||||
case BACKUP_SYSTEM:
|
||||
nameString = tr("ukui-bf-system-backup-symbolic");
|
||||
nameString = "ukui-bf-system-backup-symbolic";
|
||||
break;
|
||||
case RESTORE_SYSTEM:
|
||||
nameString = tr("ukui-bf-system-restore-symbolic");
|
||||
nameString = "ukui-bf-system-restore-symbolic";
|
||||
break;
|
||||
case BACKUP_DATA:
|
||||
nameString = tr("ukui-bf-data-backup-symbolic");
|
||||
nameString = "ukui-bf-data-backup-symbolic";
|
||||
break;
|
||||
case RESTORE_DATA:
|
||||
nameString = tr("ukui-bf-data-restore-symbolic");
|
||||
nameString = "ukui-bf-data-restore-symbolic";
|
||||
break;
|
||||
case OPERATION_LOG:
|
||||
nameString = tr("ukui-bf-operation-log-symbolic");
|
||||
nameString = "ukui-bf-operation-log-symbolic";
|
||||
break;
|
||||
case GHOST_IMAGE:
|
||||
nameString = tr("ukui-bf-ghost-mirror-symbolic");
|
||||
nameString = "ukui-bf-ghost-mirror-symbolic";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -124,10 +124,12 @@ FORMS += \
|
|||
deletebackupdialog.ui \
|
||||
maindialog.ui
|
||||
|
||||
OTHER_FILES +=
|
||||
|
||||
TRANSLATIONS += qt_zh_CN.ts
|
||||
|
||||
# !system(lrelease qt_zh_CN.ts): error("Failed to generate qm")
|
||||
# system(cp qt_zh_CN.qm images)
|
||||
!system(lrelease qt_zh_CN.ts): error("Failed to generate qm")
|
||||
system(cp qt_zh_CN.qm resource/language)
|
||||
|
||||
RESOURCES += \
|
||||
app.qrc
|
||||
|
|
|
@ -40,7 +40,7 @@ int main(int argc, char *argv[])
|
|||
if (!GlobelBackupInfo::inst().isManager() && GlobelBackupInfo::inst().hasArgRestore()) {
|
||||
QMessageBox box(QMessageBox::Warning, QObject::tr("Warning"), QObject::tr("This tool can only be used by administrator."));
|
||||
box.setStandardButtons(QMessageBox::Ok);
|
||||
box.setButtonText(QMessageBox::Ok, QObject::tr("OK"));
|
||||
box.setButtonText(QMessageBox::Ok, QObject::tr("Ok"));
|
||||
QIcon titleIcon = QIcon::fromTheme(THEME_YHKYLIN_BACKUP_TOOLS);
|
||||
box.setWindowIcon(titleIcon);
|
||||
box.exec();
|
||||
|
@ -54,7 +54,7 @@ int main(int argc, char *argv[])
|
|||
if (strUid != ack) {
|
||||
QMessageBox box(QMessageBox::Critical, QObject::tr("Error"), QObject::tr("Another user had opened kybackup, you can not start it again."));
|
||||
box.setStandardButtons(QMessageBox::Ok);
|
||||
box.setButtonText(QMessageBox::Ok, QObject::tr("OK"));
|
||||
box.setButtonText(QMessageBox::Ok, QObject::tr("Ok"));
|
||||
QIcon titleIcon = QIcon::fromTheme(THEME_YHKYLIN_BACKUP_TOOLS);
|
||||
box.setWindowIcon(titleIcon);
|
||||
box.exec();
|
||||
|
@ -117,7 +117,7 @@ void initApp(QApplication& a)
|
|||
QTranslator *translator = new QTranslator();
|
||||
if (locale == "zh_CN") {
|
||||
//中文需要翻译
|
||||
if (!translator->load(":/qm/images/qt_zh_CN.qm")) //qtcreator启动后看到在资源目录下
|
||||
if (!translator->load(":/language/qt_zh_CN.qm")) //qtcreator启动后看到在资源目录下
|
||||
qDebug() << "load translator file failed!";
|
||||
else
|
||||
a.installTranslator(translator);
|
||||
|
|
|
@ -132,10 +132,10 @@ void MainDialog::initTileBar()
|
|||
backupTheme->setMenu(selectTheme);
|
||||
QAction* defaultTheme = new QAction(tr("Auto"), m_titleWidget);
|
||||
selectTheme->addAction(defaultTheme);
|
||||
QAction* darkTheme = new QAction(tr("Dark"), m_titleWidget);
|
||||
selectTheme->addAction(darkTheme);
|
||||
QAction* lightTheme = new QAction(tr("Light"), m_titleWidget);
|
||||
selectTheme->addAction(lightTheme);
|
||||
QAction* darkTheme = new QAction(tr("Dark"), m_titleWidget);
|
||||
selectTheme->addAction(darkTheme);
|
||||
|
||||
m_backupHelp = new QAction(tr("Help"), m_titleWidget);
|
||||
backupMain->addAction(m_backupHelp);
|
||||
|
|
|
@ -80,15 +80,15 @@ void DataBackup::initFirstWidget()
|
|||
labelBackup_firstPage->setScaledContents(true);
|
||||
labelBackup_firstPage->adjustSize();
|
||||
|
||||
// 系统备份说明
|
||||
// 数据备份说明
|
||||
MyLabel *labelNote_firstPage = new MyLabel(first);
|
||||
labelNote_firstPage->setFixedWidth(700);
|
||||
labelNote_firstPage->setFixedHeight(24);
|
||||
labelNote_firstPage->move(41, 180);
|
||||
if (Utils::isHuawei990())
|
||||
labelNote_firstPage->setDeplayText(tr("Only files in the home, root, and data directories can be backed up"));
|
||||
labelNote_firstPage->setDeplayText(tr("Only files in the /home, /root, and /data directories can be backed up"));
|
||||
else
|
||||
labelNote_firstPage->setDeplayText(tr("Only files in the home, root, and data/usershare directories can be backed up"));
|
||||
labelNote_firstPage->setDeplayText(tr("Only files in the /home, /root, and /data/usershare directories can be backed up"));
|
||||
font.setBold(false);
|
||||
font.setPixelSize(18);
|
||||
labelNote_firstPage->setFont(font);
|
||||
|
@ -381,7 +381,7 @@ void DataBackup::initSecondWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(second);
|
||||
preStep->setGeometry(271, 176, 97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, [=]() {
|
||||
|
@ -391,7 +391,7 @@ void DataBackup::initSecondWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(second);
|
||||
nextStep->setGeometry(389, 176, 97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=]() {
|
||||
|
@ -602,7 +602,7 @@ void DataBackup::initSecondWidget_inc()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(second);
|
||||
preStep->setGeometry(271, 176, 97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, [=]() {
|
||||
|
@ -612,7 +612,7 @@ void DataBackup::initSecondWidget_inc()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(second);
|
||||
nextStep->setGeometry(389, 176, 97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=]() {
|
||||
|
@ -766,7 +766,7 @@ void DataBackup::initThirdWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(centerFont);
|
||||
preStep->setFixedSize(97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, [=]() {
|
||||
|
@ -780,7 +780,7 @@ void DataBackup::initThirdWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setFixedSize(97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -791,7 +791,7 @@ void DataBackup::initThirdWidget()
|
|||
// 重新检测按钮
|
||||
MyPushButton *recheck = new MyPushButton(centerFont);
|
||||
recheck->setFixedSize(97, 36);
|
||||
recheck->setText(tr("recheck"));
|
||||
recheck->setText(tr("Recheck"));
|
||||
recheck->setEnabled(true);
|
||||
recheck->setAutoRepeat(true);
|
||||
connect(recheck, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -959,9 +959,9 @@ void DataBackup::on_checkEnv_end(int result)
|
|||
errTip = tr("Please change filesystem format to ext3、ext4 or ntfs");
|
||||
break;
|
||||
case int(BackupResult::UDISK_FILESYSTEM_IS_READONLY):
|
||||
// 移动设备是只读的
|
||||
// 移动设备是只读挂载的
|
||||
errMsg = tr("The device is read only");
|
||||
// 请修改为可读写权限的
|
||||
// 请修改为读写模式
|
||||
errTip = tr("Please chmod to rw");
|
||||
break;
|
||||
case int(BackupResult::BACKUP_CAPACITY_IS_NOT_ENOUGH):
|
||||
|
@ -1069,7 +1069,7 @@ void DataBackup::initForthWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(forth);
|
||||
preStep->setGeometry(271, 268, 97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &DataBackup::on_pre_clicked);
|
||||
|
@ -1077,7 +1077,7 @@ void DataBackup::initForthWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(forth);
|
||||
nextStep->setGeometry(389, 268, 97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -1248,7 +1248,7 @@ void DataBackup::initFifthWidget()
|
|||
// 取消按钮
|
||||
MyPushButton *cancel = new MyPushButton(fifth);
|
||||
cancel->setFixedSize(97, 36);
|
||||
cancel->setText(tr("cancel"));
|
||||
cancel->setText(tr("Cancel"));
|
||||
cancel->setAutoRepeat(true);
|
||||
hlayoutCenterFont3->addStretch();
|
||||
hlayoutCenterFont3->addWidget(cancel);
|
||||
|
@ -1542,7 +1542,7 @@ void DataBackup::initLastWidget()
|
|||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
homePage->setFixedSize(97, 36);
|
||||
homePage->setText(tr("home page"));
|
||||
homePage->setText(tr("Home Page"));
|
||||
homePage->setEnabled(true);
|
||||
homePage->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
|
@ -1550,7 +1550,7 @@ void DataBackup::initLastWidget()
|
|||
// 再试一次
|
||||
MyPushButton *retry = new MyPushButton(centerFont);
|
||||
retry->setFixedSize(97, 36);
|
||||
retry->setText(tr("retry"));
|
||||
retry->setText(tr("Retry"));
|
||||
retry->setEnabled(true);
|
||||
retry->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(retry);
|
||||
|
|
|
@ -320,7 +320,7 @@ void DataRestore::initSecondWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(centerFont);
|
||||
preStep->setFixedSize(97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &DataRestore::on_pre_clicked);
|
||||
|
@ -329,7 +329,7 @@ void DataRestore::initSecondWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setFixedSize(97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -340,7 +340,7 @@ void DataRestore::initSecondWidget()
|
|||
// 重新检测按钮
|
||||
MyPushButton *recheck = new MyPushButton(centerFont);
|
||||
recheck->setFixedSize(97, 36);
|
||||
recheck->setText(tr("recheck"));
|
||||
recheck->setText(tr("Recheck"));
|
||||
recheck->setEnabled(true);
|
||||
recheck->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(recheck);
|
||||
|
@ -378,9 +378,9 @@ void DataRestore::initSecondWidget()
|
|||
dot2->setBackgroundColor(Qt::black);
|
||||
labelCheck1->setFontColor(Qt::black);
|
||||
labelCheck2->setFontColor(Qt::black);
|
||||
// 还原过程中不要做其它操作,以防数据丢失
|
||||
// 检查恢复环境是否符合要求
|
||||
labelCheck1->setDeplayText(tr("Check whether the restore environment meets the requirements"));
|
||||
// 检测还原环境是否满足
|
||||
// 还原期间不要做其它操作,以防数据丢失
|
||||
labelCheck2->setDeplayText(tr("Do not perform other operations during restore to avoid data loss"));
|
||||
preStep->setVisible(false);
|
||||
nextStep->setVisible(false);
|
||||
|
@ -874,7 +874,7 @@ void DataRestore::initLastWidget()
|
|||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
homePage->setFixedSize(97, 36);
|
||||
homePage->setText(tr("home page"));
|
||||
homePage->setText(tr("Home Page"));
|
||||
homePage->setEnabled(true);
|
||||
homePage->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
|
@ -882,14 +882,14 @@ void DataRestore::initLastWidget()
|
|||
// 再试一次
|
||||
MyPushButton *retry = new MyPushButton(centerFont);
|
||||
retry->setFixedSize(97, 36);
|
||||
retry->setText(tr("retry"));
|
||||
retry->setText(tr("Retry"));
|
||||
retry->setEnabled(true);
|
||||
retry->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(retry);
|
||||
// 重启
|
||||
MyPushButton *reboot = new MyPushButton(centerFont);
|
||||
reboot->setFixedSize(97, 36);
|
||||
reboot->setText(tr("reboot system"));
|
||||
reboot->setText(tr("Reboot System"));
|
||||
reboot->setEnabled(true);
|
||||
reboot->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(reboot);
|
||||
|
|
|
@ -226,7 +226,7 @@ void GhostImage::initSecondWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(second);
|
||||
preStep->setGeometry(271, 176, 97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &GhostImage::on_pre_clicked);
|
||||
|
@ -234,7 +234,7 @@ void GhostImage::initSecondWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(second);
|
||||
nextStep->setGeometry(389, 176, 97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -358,7 +358,7 @@ void GhostImage::initThirdWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(centerFont);
|
||||
preStep->setFixedSize(97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &GhostImage::on_pre_clicked);
|
||||
|
@ -367,7 +367,7 @@ void GhostImage::initThirdWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setFixedSize(97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -378,7 +378,7 @@ void GhostImage::initThirdWidget()
|
|||
// 重新检测按钮
|
||||
MyPushButton *recheck = new MyPushButton(centerFont);
|
||||
recheck->setFixedSize(97, 36);
|
||||
recheck->setText(tr("recheck"));
|
||||
recheck->setText(tr("Recheck"));
|
||||
recheck->setEnabled(true);
|
||||
recheck->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(recheck);
|
||||
|
@ -416,10 +416,10 @@ void GhostImage::initThirdWidget()
|
|||
dot2->setBackgroundColor(Qt::black);
|
||||
labelCheck1->setFontColor(Qt::black);
|
||||
labelCheck2->setFontColor(Qt::black);
|
||||
// 还原过程中不要做其它操作,以防数据丢失
|
||||
labelCheck1->setDeplayText(tr("Check whether the restore environment meets the requirements"));
|
||||
// 检测还原环境是否满足
|
||||
labelCheck2->setDeplayText(tr("Do not perform other operations during restore to avoid data loss"));
|
||||
// 检测是否具备制作Ghost镜像条件
|
||||
labelCheck1->setDeplayText(tr("Check whether the conditions for creating an ghost image are met"));
|
||||
// 制作Ghost镜像期间不要做其它操作,以防数据丢失
|
||||
labelCheck2->setDeplayText(tr("Do not perform other operations during creating an ghost image to avoid data loss"));
|
||||
preStep->setVisible(false);
|
||||
nextStep->setVisible(false);
|
||||
recheck->setVisible(false);
|
||||
|
@ -714,7 +714,7 @@ void GhostImage::initForthWidget()
|
|||
// 取消按钮
|
||||
MyPushButton *cancel = new MyPushButton(forth);
|
||||
cancel->setFixedSize(97, 36);
|
||||
cancel->setText(tr("cancel"));
|
||||
cancel->setText(tr("Cancel"));
|
||||
cancel->setEnabled(true);
|
||||
cancel->setAutoRepeat(true);
|
||||
hlayoutCenterFont3->addStretch();
|
||||
|
@ -1046,7 +1046,7 @@ void GhostImage::initLastWidget()
|
|||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
homePage->setFixedSize(97, 36);
|
||||
homePage->setText(tr("home page"));
|
||||
homePage->setText(tr("Home Page"));
|
||||
homePage->setEnabled(true);
|
||||
homePage->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
|
@ -1054,7 +1054,7 @@ void GhostImage::initLastWidget()
|
|||
// 再试一次
|
||||
MyPushButton *retry = new MyPushButton(centerFont);
|
||||
retry->setFixedSize(97, 36);
|
||||
retry->setText(tr("retry"));
|
||||
retry->setText(tr("Retry"));
|
||||
retry->setEnabled(true);
|
||||
retry->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(retry);
|
||||
|
|
|
@ -230,7 +230,7 @@ void SystemBackup::initSecondWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(second);
|
||||
preStep->setGeometry(271, 176, 97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
|
@ -238,7 +238,7 @@ void SystemBackup::initSecondWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(second);
|
||||
nextStep->setGeometry(389, 176, 97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -361,7 +361,7 @@ void SystemBackup::initThirdWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(centerFont);
|
||||
preStep->setFixedSize(97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
|
@ -370,7 +370,7 @@ void SystemBackup::initThirdWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setFixedSize(97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -381,7 +381,7 @@ void SystemBackup::initThirdWidget()
|
|||
// 重新检测按钮
|
||||
MyPushButton *recheck = new MyPushButton(centerFont);
|
||||
recheck->setFixedSize(97, 36);
|
||||
recheck->setText(tr("recheck"));
|
||||
recheck->setText(tr("Recheck"));
|
||||
recheck->setEnabled(true);
|
||||
recheck->setAutoRepeat(true);
|
||||
connect(recheck, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -657,7 +657,7 @@ void SystemBackup::initForthWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(forth);
|
||||
preStep->setGeometry(271, 268, 97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
|
@ -665,7 +665,7 @@ void SystemBackup::initForthWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(forth);
|
||||
nextStep->setGeometry(389, 268, 97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -852,7 +852,7 @@ void SystemBackup::initFifthWidget()
|
|||
// 取消按钮
|
||||
MyPushButton *cancel = new MyPushButton(fifth);
|
||||
cancel->setFixedSize(97, 36);
|
||||
cancel->setText(tr("cancel"));
|
||||
cancel->setText(tr("Cancel"));
|
||||
cancel->setAutoRepeat(true);
|
||||
hlayoutCenterFont3->addStretch();
|
||||
hlayoutCenterFont3->addWidget(cancel);
|
||||
|
@ -1183,7 +1183,7 @@ void SystemBackup::initLastWidget()
|
|||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
homePage->setFixedSize(97, 36);
|
||||
homePage->setText(tr("home page"));
|
||||
homePage->setText(tr("Home Page"));
|
||||
homePage->setEnabled(true);
|
||||
homePage->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
|
@ -1191,7 +1191,7 @@ void SystemBackup::initLastWidget()
|
|||
// 再试一次
|
||||
MyPushButton *retry = new MyPushButton(centerFont);
|
||||
retry->setFixedSize(97, 36);
|
||||
retry->setText(tr("retry"));
|
||||
retry->setText(tr("Retry"));
|
||||
retry->setEnabled(true);
|
||||
retry->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(retry);
|
||||
|
|
|
@ -338,7 +338,7 @@ void SystemRestore::initSecondWidget()
|
|||
// 上一步按钮
|
||||
MyPushButton *preStep = new MyPushButton(centerFont);
|
||||
preStep->setFixedSize(97, 36);
|
||||
preStep->setText(tr("back"));
|
||||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &SystemRestore::on_pre_clicked);
|
||||
|
@ -347,7 +347,7 @@ void SystemRestore::initSecondWidget()
|
|||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setFixedSize(97, 36);
|
||||
nextStep->setText(tr("next"));
|
||||
nextStep->setText(tr("Next"));
|
||||
nextStep->setEnabled(true);
|
||||
nextStep->setAutoRepeat(true);
|
||||
connect(nextStep, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
|
@ -358,7 +358,7 @@ void SystemRestore::initSecondWidget()
|
|||
// 重新检测按钮
|
||||
MyPushButton *recheck = new MyPushButton(centerFont);
|
||||
recheck->setFixedSize(97, 36);
|
||||
recheck->setText(tr("recheck"));
|
||||
recheck->setText(tr("Recheck"));
|
||||
recheck->setEnabled(true);
|
||||
recheck->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(recheck);
|
||||
|
@ -901,7 +901,7 @@ void SystemRestore::initLastWidget()
|
|||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
homePage->setFixedSize(97, 36);
|
||||
homePage->setText(tr("home page"));
|
||||
homePage->setText(tr("Home Page"));
|
||||
homePage->setEnabled(true);
|
||||
homePage->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
|
@ -909,7 +909,7 @@ void SystemRestore::initLastWidget()
|
|||
// 再试一次
|
||||
MyPushButton *retry = new MyPushButton(centerFont);
|
||||
retry->setFixedSize(97, 36);
|
||||
retry->setText(tr("retry"));
|
||||
retry->setText(tr("Retry"));
|
||||
retry->setEnabled(true);
|
||||
retry->setAutoRepeat(true);
|
||||
hlayoutCenterFont5->addWidget(retry);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Loading…
Reference in New Issue