123142 【UKUI 3.1.4 走查】【设计】【备份还原】备份位置浏览按钮
This commit is contained in:
parent
9aaa1f4c51
commit
e386703fd9
|
@ -9,7 +9,9 @@
|
|||
AboutDialog::AboutDialog(QWidget *parent) :
|
||||
kdk::KAboutDialog(parent)
|
||||
{
|
||||
//setWindowIcon(QIcon::fromTheme(THEME_YHKYLIN_BACKUP_TOOLS));
|
||||
setAppIcon(QIcon::fromTheme(THEME_YHKYLIN_BACKUP_TOOLS));
|
||||
//setWindowTitle(tr("Backup & Restore"));
|
||||
setAppName(tr("Backup & Restore"));
|
||||
setAppVersion(getBackupVersion());
|
||||
// 麒麟备份还原工具是一款支持系统备份还原和数据备份还原的工具,当用户数据损坏或系统遭受攻击时能够通过该工具灵活的还原到备份节点的状态。针对国产软硬件平台开展了大量的优化和创新。
|
||||
|
|
|
@ -36,5 +36,6 @@
|
|||
<file alias="/images/system_restore_dark.png">resource/images/sysem_restore_dark.png</file>
|
||||
<file alias="/images/empty.png">resource/images/empty.png</file>
|
||||
<file alias="/images/empty_dark.png">resource/images/empty_dark.png</file>
|
||||
<file alias="/language/qt_bo_CN.qm">resource/language/qt_bo_CN.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -203,7 +203,7 @@ void BackupListWidget::dropEvent(QDropEvent *event)
|
|||
QString file = url.toString();
|
||||
if (file.startsWith("file://")) {
|
||||
file.replace("file://", "");
|
||||
appendItem(file);
|
||||
appendItem(url.path());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -216,13 +216,13 @@ bool BackupListWidget::checkPathLimit(const QString &path)
|
|||
// 2、形如:$()的文件夹名称
|
||||
// 3、形如:${}的文件夹名称
|
||||
// 4、包含[;、&、|]等可以包含并执行系统命令或用于连续执行系统命令的符号
|
||||
if ( path.contains(QRegularExpression(".*`.*`.*"))
|
||||
|| path.contains(QRegularExpression(".*\\$\\(.*\\).*"))
|
||||
|| path.contains(QRegularExpression(".*\\$\\{.*\\}.*"))
|
||||
|| path.contains(QRegularExpression("[;&|]+"))) {
|
||||
MessageBoxUtils::QMESSAGE_BOX_WARNING(this, QObject::tr("Warning"), QObject::tr("Path can not include symbols that such as : ``,$(),${},;,&,|,etc."), QObject::tr("Ok"));
|
||||
return false;
|
||||
}
|
||||
// if ( path.contains(QRegularExpression(".*`.*`.*"))
|
||||
// || path.contains(QRegularExpression(".*\\$\\(.*\\).*"))
|
||||
// || path.contains(QRegularExpression(".*\\$\\{.*\\}.*"))
|
||||
// || path.contains(QRegularExpression("[;&|]+"))) {
|
||||
// MessageBoxUtils::QMESSAGE_BOX_WARNING(this, QObject::tr("Warning"), QObject::tr("Path can not include symbols that such as : ``,$(),${},;,&,|,etc."), QObject::tr("Ok"));
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// 1、列表中是否已经存在
|
||||
if (contains(path)) {
|
||||
|
|
|
@ -20,17 +20,17 @@ bool FileFilterProxyModeForBackup::filterAcceptsRow(int sourceRow, const QModelI
|
|||
QString fileName = fileModel->fileName(index0);
|
||||
// 防命令注入
|
||||
// 1、形如:mkdir '`id&>id_bak_test.txt`'中的文件夹名称
|
||||
if (fileName.contains(QRegularExpression(".*`.*`.*")))
|
||||
return false;
|
||||
// 2、形如:$()的文件夹名称
|
||||
if (fileName.contains(QRegularExpression(".*\\$\\(.*\\).*")))
|
||||
return false;
|
||||
// 3、形如:${}的文件夹名称
|
||||
if (fileName.contains(QRegularExpression(".*\\$\\{.*\\}.*")))
|
||||
return false;
|
||||
// 4、包含[;、&、|]等可以包含并执行系统命令或用于连续执行系统命令的符号
|
||||
if (fileName.contains(QRegularExpression("[;&|]+")))
|
||||
return false;
|
||||
// if (fileName.contains(QRegularExpression(".*`.*`.*")))
|
||||
// return false;
|
||||
// // 2、形如:$()的文件夹名称
|
||||
// if (fileName.contains(QRegularExpression(".*\\$\\(.*\\).*")))
|
||||
// return false;
|
||||
// // 3、形如:${}的文件夹名称
|
||||
// if (fileName.contains(QRegularExpression(".*\\$\\{.*\\}.*")))
|
||||
// return false;
|
||||
// // 4、包含[;、&、|]等可以包含并执行系统命令或用于连续执行系统命令的符号
|
||||
// if (fileName.contains(QRegularExpression("[;&|]+")))
|
||||
// return false;
|
||||
|
||||
QString filePath = fileModel->filePath(index0);
|
||||
if (fileName == "backup") {
|
||||
|
|
|
@ -143,9 +143,9 @@ TRANSLATIONS += qt_zh_CN.ts \
|
|||
system(rm -f qt_zh_CN.qm)
|
||||
!system(lrelease qt_zh_CN.ts): error("Failed to generate cp qt_zh_CN.qm")
|
||||
system(cp qt_zh_CN.qm resource/language/)
|
||||
#system(rm -f qt_bo_CN.qm)
|
||||
#!system(lrelease qt_bo_CN.ts): error("Failed to generate qt_bo_CN.qm")
|
||||
#system(cp qt_bo_CN.qm resource/language/)
|
||||
system(rm -f qt_bo_CN.qm)
|
||||
!system(lrelease qt_bo_CN.ts): error("Failed to generate qt_bo_CN.qm")
|
||||
system(cp qt_bo_CN.qm resource/language/)
|
||||
|
||||
RESOURCES += \
|
||||
app.qrc
|
||||
|
|
|
@ -48,8 +48,10 @@ void LeftsiderbarWidget::initUi()
|
|||
m_mTitleIcon->setFixedSize(24, 24);
|
||||
m_mTitleIcon->setUkuiIconSchema(THEME_YHKYLIN_BACKUP_TOOLS);
|
||||
m_titleLabel = new MyLabel;
|
||||
m_titleLabel->setDeplayText(tr("Backup & Restore"));
|
||||
m_titleLabel->setToolTip(tr("Backup & Restore"));
|
||||
m_titleLabel->setFixedWidth(this->width() - 35);
|
||||
m_titleLabel->setElidedText(tr("Backup & Restore"));
|
||||
if (m_titleLabel->text() != tr("Backup & Restore"))
|
||||
m_titleLabel->setToolTip(tr("Backup & Restore"));
|
||||
m_titleLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
titleWidget->setLayout(titleLayout);
|
||||
titleLayout->addWidget(m_mTitleIcon);
|
||||
|
@ -86,7 +88,7 @@ void LeftsiderbarWidget::initUi()
|
|||
item->setIcon(icon);
|
||||
item->setText(mnamei18nString);
|
||||
item->setTextAlignment(Qt::AlignLeft | Qt::AlignVCenter);
|
||||
item->setToolTip(mnamei18nString);
|
||||
// item->setToolTip(mnamei18nString);
|
||||
item->setCheckable(true);
|
||||
m_navigationBar->addItem(item);
|
||||
|
||||
|
|
|
@ -158,8 +158,13 @@ void DataBackup::initFirstWidget()
|
|||
incrementBackup->setText(tr("Update Backup"));
|
||||
if (incrementBackup->text() == "Update Backup")
|
||||
incrementBackup->setFixedWidth(220);
|
||||
else
|
||||
else if (incrementBackup->text() == "备份更新")
|
||||
incrementBackup->setFixedWidth(180);
|
||||
else {
|
||||
QFontMetrics fontMetrics(font);
|
||||
int fontSize = fontMetrics.width(incrementBackup->text());
|
||||
incrementBackup->setFixedWidth(fontSize * 1.2);
|
||||
}
|
||||
incrementBackup->setEnabled(true);
|
||||
incrementBackup->setAutoRepeat(true);
|
||||
font.setPixelSize(24);
|
||||
|
@ -374,6 +379,7 @@ void DataBackup::initSecondWidget()
|
|||
// 最后一行
|
||||
vlayout->addSpacing(40);
|
||||
QHBoxLayout * hlayoutLastLine = new QHBoxLayout;
|
||||
hlayoutLastLine->setSpacing(16);
|
||||
hlayoutLastLine->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(second);
|
||||
|
@ -392,7 +398,6 @@ void DataBackup::initSecondWidget()
|
|||
nextStep->setAutoRepeat(true);
|
||||
nextStep->setProperty("isImportant", true);
|
||||
hlayoutLastLine->addWidget(preStep);
|
||||
hlayoutLastLine->addSpacing(16);
|
||||
hlayoutLastLine->addWidget(nextStep);
|
||||
hlayoutLastLine->addStretch();
|
||||
hlayoutLastLine->setAlignment(Qt::AlignCenter);
|
||||
|
@ -691,6 +696,7 @@ void DataBackup::initSecondWidget_inc()
|
|||
// 最后一行
|
||||
vlayout->addSpacing(40);
|
||||
QHBoxLayout * hlayoutLastLine = new QHBoxLayout;
|
||||
hlayoutLastLine->setSpacing(16);
|
||||
hlayoutLastLine->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(second);
|
||||
|
@ -709,7 +715,6 @@ void DataBackup::initSecondWidget_inc()
|
|||
nextStep->setProperty("isImportant", true);
|
||||
|
||||
hlayoutLastLine->addWidget(preStep);
|
||||
hlayoutLastLine->addSpacing(16);
|
||||
hlayoutLastLine->addWidget(nextStep);
|
||||
hlayoutLastLine->addStretch();
|
||||
hlayoutLastLine->setAlignment(Qt::AlignCenter);
|
||||
|
@ -936,6 +941,7 @@ void DataBackup::initThirdWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(centerFont);
|
||||
|
@ -950,7 +956,6 @@ void DataBackup::initThirdWidget()
|
|||
this->setCurrentIndex(SELECT_PATH_PAGE);
|
||||
});
|
||||
hlayoutCenterFont5->addWidget(preStep);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setText(tr("Next"));
|
||||
|
@ -1299,6 +1304,7 @@ void DataBackup::initForthWidget()
|
|||
vlayout->addSpacing(56);
|
||||
// 中部第三行
|
||||
QHBoxLayout *hlayoutCenterLine3 = new QHBoxLayout;
|
||||
hlayoutCenterLine3->setSpacing(16);
|
||||
hlayoutCenterLine3->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(forth);
|
||||
|
@ -1308,7 +1314,6 @@ void DataBackup::initForthWidget()
|
|||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &DataBackup::on_pre_clicked);
|
||||
hlayoutCenterLine3->addWidget(preStep);
|
||||
hlayoutCenterLine3->addSpacing(16);
|
||||
|
||||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(forth);
|
||||
|
@ -1812,6 +1817,7 @@ void DataBackup::initLastWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
|
@ -1820,7 +1826,6 @@ void DataBackup::initLastWidget()
|
|||
homePage->setAutoRepeat(true);
|
||||
homePage->setProperty("isImportant", true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 再试一次
|
||||
KBorderButton *retry = new KBorderButton(centerFont);
|
||||
retry->setText(tr("Retry"));
|
||||
|
@ -1850,6 +1855,9 @@ void DataBackup::initLastWidget()
|
|||
resultLogo->setVisible(true);
|
||||
// 备份成功
|
||||
bigTitle->setDeplayText(tr("The backup is successful"));
|
||||
QFontMetrics fontMetrics(bigTitle->font());
|
||||
int fontSize = fontMetrics.width(bigTitle->getOriginalText());
|
||||
bigTitle->setFixedWidth(fontSize);
|
||||
hlayoutCenterFont1->setAlignment(Qt::AlignCenter);
|
||||
|
||||
dot1->setVisible(false);
|
||||
|
|
|
@ -326,6 +326,7 @@ void DataRestore::initSecondWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(centerFont);
|
||||
|
@ -335,7 +336,6 @@ void DataRestore::initSecondWidget()
|
|||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &DataRestore::on_pre_clicked);
|
||||
hlayoutCenterFont5->addWidget(preStep);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setText(tr("Next"));
|
||||
|
@ -882,6 +882,7 @@ void DataRestore::initLastWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
|
@ -890,7 +891,6 @@ void DataRestore::initLastWidget()
|
|||
homePage->setAutoRepeat(true);
|
||||
homePage->setProperty("isImportant", true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 再试一次
|
||||
KBorderButton *retry = new KBorderButton(centerFont);
|
||||
retry->setText(tr("Retry"));
|
||||
|
@ -944,10 +944,15 @@ void DataRestore::initLastWidget()
|
|||
labelError1->setDeplayText(tr("The system needs to reboot. Otherwise, some tools cannot be used."));
|
||||
labelError1->setVisible(true);
|
||||
reboot->setVisible(true);
|
||||
hlayoutCenterFont1->setAlignment(Qt::AlignLeft);
|
||||
} else {
|
||||
dot1->setVisible(false);
|
||||
labelError1->setVisible(false);
|
||||
reboot->setVisible(false);
|
||||
QFontMetrics fontMetrics(bigTitle->font());
|
||||
int fontSize = fontMetrics.width(bigTitle->getOriginalText());
|
||||
bigTitle->setFixedWidth(fontSize);
|
||||
hlayoutCenterFont1->setAlignment(Qt::AlignCenter);
|
||||
}
|
||||
} else {
|
||||
QIcon icon = QIcon::fromTheme("dialog-error.png", QIcon(":/symbos/dialog-error.png"));
|
||||
|
@ -964,6 +969,7 @@ void DataRestore::initLastWidget()
|
|||
homePage->setVisible(true);
|
||||
retry->setVisible(true);
|
||||
reboot->setVisible(false);
|
||||
hlayoutCenterFont1->setAlignment(Qt::AlignLeft);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -244,6 +244,7 @@ void GhostImage::initSecondWidget()
|
|||
|
||||
// 第三行
|
||||
QHBoxLayout * hlayoutLine3 = new QHBoxLayout;
|
||||
hlayoutLine3->setSpacing(16);
|
||||
hlayoutLine3->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(second);
|
||||
|
@ -253,7 +254,6 @@ void GhostImage::initSecondWidget()
|
|||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &GhostImage::on_pre_clicked);
|
||||
hlayoutLine3->addWidget(preStep);
|
||||
hlayoutLine3->addSpacing(16);
|
||||
|
||||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(second);
|
||||
|
@ -390,6 +390,7 @@ void GhostImage::initThirdWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(centerFont);
|
||||
|
@ -399,7 +400,6 @@ void GhostImage::initThirdWidget()
|
|||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &GhostImage::on_pre_clicked);
|
||||
hlayoutCenterFont5->addWidget(preStep);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setText(tr("Next"));
|
||||
|
@ -458,7 +458,7 @@ void GhostImage::initThirdWidget()
|
|||
// 检测是否具备制作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"));
|
||||
labelCheck2->setDeplayText(tr("Do not perform other operations to avoid data loss"));
|
||||
preStep->setVisible(false);
|
||||
nextStep->setVisible(false);
|
||||
recheck->setVisible(false);
|
||||
|
@ -1079,6 +1079,7 @@ void GhostImage::initLastWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
|
@ -1087,7 +1088,6 @@ void GhostImage::initLastWidget()
|
|||
homePage->setAutoRepeat(true);
|
||||
homePage->setProperty("isImportant", true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 再试一次
|
||||
KBorderButton *retry = new KBorderButton(centerFont);
|
||||
retry->setText(tr("Retry"));
|
||||
|
|
|
@ -244,6 +244,7 @@ void SystemBackup::initSecondWidget()
|
|||
|
||||
// 第三行
|
||||
QHBoxLayout * hlayoutLine3 = new QHBoxLayout;
|
||||
hlayoutLine3->setSpacing(16);
|
||||
hlayoutLine3->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(second);
|
||||
|
@ -253,7 +254,6 @@ void SystemBackup::initSecondWidget()
|
|||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &MyPushButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
hlayoutLine3->addWidget(preStep);
|
||||
hlayoutLine3->addSpacing(16);
|
||||
|
||||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(second);
|
||||
|
@ -486,6 +486,7 @@ void SystemBackup::initThirdWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(centerFont);
|
||||
|
@ -495,7 +496,6 @@ void SystemBackup::initThirdWidget()
|
|||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
hlayoutCenterFont5->addWidget(preStep);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setText(tr("Next"));
|
||||
|
@ -833,6 +833,7 @@ void SystemBackup::initForthWidget()
|
|||
vlayout->addSpacing(56);
|
||||
// 中部第三行
|
||||
QHBoxLayout *hlayoutCenterLine3 = new QHBoxLayout;
|
||||
hlayoutCenterLine3->setSpacing(16);
|
||||
hlayoutCenterLine3->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(forth);
|
||||
|
@ -842,7 +843,6 @@ void SystemBackup::initForthWidget()
|
|||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
hlayoutCenterLine3->addWidget(preStep);
|
||||
hlayoutCenterLine3->addSpacing(16);
|
||||
|
||||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(forth);
|
||||
|
@ -1405,6 +1405,7 @@ void SystemBackup::initLastWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
|
@ -1413,7 +1414,6 @@ void SystemBackup::initLastWidget()
|
|||
homePage->setAutoRepeat(true);
|
||||
homePage->setProperty("isImportant", true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 再试一次
|
||||
KBorderButton *retry = new KBorderButton(centerFont);
|
||||
retry->setText(tr("Retry"));
|
||||
|
@ -1443,6 +1443,9 @@ void SystemBackup::initLastWidget()
|
|||
resultLogo->setVisible(true);
|
||||
// 备份成功
|
||||
bigTitle->setDeplayText(tr("The backup is successful"));
|
||||
QFontMetrics fontMetrics(bigTitle->font());
|
||||
int fontSize = fontMetrics.width(bigTitle->getOriginalText());
|
||||
bigTitle->setFixedWidth(fontSize);
|
||||
hlayoutCenterFont1->setAlignment(Qt::AlignCenter);
|
||||
|
||||
dot1->setVisible(false);
|
||||
|
|
|
@ -347,6 +347,7 @@ void SystemRestore::initSecondWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 上一步按钮
|
||||
KBorderButton *preStep = new KBorderButton(centerFont);
|
||||
|
@ -356,7 +357,6 @@ void SystemRestore::initSecondWidget()
|
|||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &SystemRestore::on_pre_clicked);
|
||||
hlayoutCenterFont5->addWidget(preStep);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 下一步按钮
|
||||
MyPushButton *nextStep = new MyPushButton(centerFont);
|
||||
nextStep->setText(tr("Next"));
|
||||
|
@ -912,6 +912,7 @@ void SystemRestore::initLastWidget()
|
|||
|
||||
// 第五行
|
||||
QHBoxLayout *hlayoutCenterFont5 = new QHBoxLayout;
|
||||
hlayoutCenterFont5->setSpacing(16);
|
||||
hlayoutCenterFont5->addStretch();
|
||||
// 返回首页
|
||||
MyPushButton *homePage = new MyPushButton(centerFont);
|
||||
|
@ -920,7 +921,6 @@ void SystemRestore::initLastWidget()
|
|||
homePage->setAutoRepeat(true);
|
||||
homePage->setProperty("isImportant", true);
|
||||
hlayoutCenterFont5->addWidget(homePage);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 再试一次
|
||||
KBorderButton *retry = new KBorderButton(centerFont);
|
||||
retry->setText(tr("Retry"));
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -13,7 +13,7 @@
|
|||
<translation type="vanished">关闭</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="13"/>
|
||||
<location filename="aboutdialog.cpp" line="15"/>
|
||||
<source>Backup & Restore</source>
|
||||
<translation>备份还原工具</translation>
|
||||
</message>
|
||||
|
@ -22,12 +22,12 @@
|
|||
<translation type="vanished">版本:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="16"/>
|
||||
<location filename="aboutdialog.cpp" line="18"/>
|
||||
<source>The backup tool is a tool that supports system backup and data backup. When the user data is damaged or the system is attacked, the tool can flexibly restore the status of the backup node. A lot of optimization and innovation have been carried out for domestic hardware and software platforms.</source>
|
||||
<translation>备份还原工具是一款支持系统备份还原和数据备份还原的工具,当用户数据损坏或系统遭受攻击时能够通过该工具灵活的还原到备份节点的状态。针对国产软硬件平台开展了大量的优化和创新。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="21"/>
|
||||
<location filename="aboutdialog.cpp" line="23"/>
|
||||
<source>Service & Support: %1</source>
|
||||
<translation>服务与支持团队:%1</translation>
|
||||
</message>
|
||||
|
@ -35,7 +35,7 @@
|
|||
<context>
|
||||
<name>BackupListWidget</name>
|
||||
<message>
|
||||
<location filename="component/backuplistwidget.cpp" line="102"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="103"/>
|
||||
<source>File drag and drop area</source>
|
||||
<translation>拖放文件夹识别路径</translation>
|
||||
</message>
|
||||
|
@ -185,10 +185,10 @@
|
|||
<translation>请选择备份文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/databackup.cpp" line="380"/>
|
||||
<location filename="module/databackup.cpp" line="697"/>
|
||||
<location filename="module/databackup.cpp" line="942"/>
|
||||
<location filename="module/databackup.cpp" line="1305"/>
|
||||
<location filename="module/databackup.cpp" line="381"/>
|
||||
<location filename="module/databackup.cpp" line="698"/>
|
||||
<location filename="module/databackup.cpp" line="943"/>
|
||||
<location filename="module/databackup.cpp" line="1306"/>
|
||||
<source>Back</source>
|
||||
<translation>上一步</translation>
|
||||
</message>
|
||||
|
@ -199,8 +199,8 @@
|
|||
<translation>清空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/databackup.cpp" line="390"/>
|
||||
<location filename="module/databackup.cpp" line="707"/>
|
||||
<location filename="module/databackup.cpp" line="391"/>
|
||||
<location filename="module/databackup.cpp" line="708"/>
|
||||
<location filename="module/databackup.cpp" line="956"/>
|
||||
<location filename="module/databackup.cpp" line="1315"/>
|
||||
<source>Next</source>
|
||||
|
@ -427,7 +427,7 @@
|
|||
<translation>错误信息请参考日志文件:/var/log/backup.log</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/databackup.cpp" line="1818"/>
|
||||
<location filename="module/databackup.cpp" line="1819"/>
|
||||
<source>Home Page</source>
|
||||
<translation>返回首页</translation>
|
||||
</message>
|
||||
|
@ -442,7 +442,7 @@
|
|||
<translation>备份成功</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/databackup.cpp" line="1867"/>
|
||||
<location filename="module/databackup.cpp" line="1870"/>
|
||||
<source>The backup is failed</source>
|
||||
<translation>备份失败</translation>
|
||||
</message>
|
||||
|
@ -506,7 +506,7 @@
|
|||
<translation>还原完成</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/datarestore.cpp" line="332"/>
|
||||
<location filename="module/datarestore.cpp" line="333"/>
|
||||
<source>Back</source>
|
||||
<translation>上一步</translation>
|
||||
</message>
|
||||
|
@ -639,7 +639,7 @@
|
|||
<translation>错误信息请参考日志文件:/var/log/backup.log</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/datarestore.cpp" line="888"/>
|
||||
<location filename="module/datarestore.cpp" line="889"/>
|
||||
<source>Home Page</source>
|
||||
<translation>返回首页</translation>
|
||||
</message>
|
||||
|
@ -664,7 +664,7 @@
|
|||
<translation>系统需要重启,否则某些工具可能无法使用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/datarestore.cpp" line="957"/>
|
||||
<location filename="module/datarestore.cpp" line="962"/>
|
||||
<source>Restoring the data failed</source>
|
||||
<translation>还原失败</translation>
|
||||
</message>
|
||||
|
@ -804,8 +804,8 @@
|
|||
<translation>移动设备:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/ghostimage.cpp" line="250"/>
|
||||
<location filename="module/ghostimage.cpp" line="396"/>
|
||||
<location filename="module/ghostimage.cpp" line="251"/>
|
||||
<location filename="module/ghostimage.cpp" line="397"/>
|
||||
<source>Back</source>
|
||||
<translation>上一步</translation>
|
||||
</message>
|
||||
|
@ -853,8 +853,8 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="module/ghostimage.cpp" line="461"/>
|
||||
<source>Do not perform other operations during creating an ghost image to avoid data loss</source>
|
||||
<translation>制作Ghost镜像期间不要做其它操作,以防数据丢失</translation>
|
||||
<source>Do not perform other operations to avoid data loss</source>
|
||||
<translation>不要做其它操作,以防数据丢失</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/ghostimage.cpp" line="479"/>
|
||||
|
@ -1021,7 +1021,7 @@
|
|||
<translation>错误信息请参考日志文件:/var/log/backup.log</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/ghostimage.cpp" line="1085"/>
|
||||
<location filename="module/ghostimage.cpp" line="1086"/>
|
||||
<source>Home Page</source>
|
||||
<translation>返回首页</translation>
|
||||
</message>
|
||||
|
@ -1222,17 +1222,16 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="component/backuplistwidget.cpp" line="220"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="226"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="235"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="258"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="229"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="238"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="261"/>
|
||||
<location filename="maindialog.cpp" line="286"/>
|
||||
<location filename="maindialog.cpp" line="302"/>
|
||||
<location filename="maindialog.cpp" line="322"/>
|
||||
<location filename="module/databackup.cpp" line="484"/>
|
||||
<location filename="module/databackup.cpp" line="502"/>
|
||||
<location filename="module/databackup.cpp" line="723"/>
|
||||
<location filename="module/datarestore.cpp" line="1002"/>
|
||||
<location filename="module/datarestore.cpp" line="1008"/>
|
||||
<location filename="module/managebackuppointlist.cpp" line="49"/>
|
||||
<location filename="module/selectrestorepoint.cpp" line="49"/>
|
||||
<location filename="module/systembackup.cpp" line="350"/>
|
||||
|
@ -1241,15 +1240,13 @@
|
|||
<translation>警告</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="component/backuplistwidget.cpp" line="220"/>
|
||||
<source>Path can not include symbols that such as : ``,$(),${},;,&,|,etc.</source>
|
||||
<translation>路径中不能包含:``、$()、${}、;、&、|等特殊符号</translation>
|
||||
<translation type="vanished">路径中不能包含:``、$()、${}、;、&、|等特殊符号</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="component/backuplistwidget.cpp" line="220"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="228"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="237"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="260"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="231"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="240"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="263"/>
|
||||
<location filename="main.cpp" line="45"/>
|
||||
<location filename="maindialog.cpp" line="288"/>
|
||||
<location filename="maindialog.cpp" line="304"/>
|
||||
|
@ -1259,7 +1256,7 @@
|
|||
<location filename="module/databackup.cpp" line="504"/>
|
||||
<location filename="module/databackup.cpp" line="725"/>
|
||||
<location filename="module/databackup.cpp" line="1556"/>
|
||||
<location filename="module/datarestore.cpp" line="1004"/>
|
||||
<location filename="module/datarestore.cpp" line="1010"/>
|
||||
<location filename="module/ghostimage.cpp" line="813"/>
|
||||
<location filename="module/managebackuppointlist.cpp" line="49"/>
|
||||
<location filename="module/managebackuppointlist.cpp" line="54"/>
|
||||
|
@ -1271,17 +1268,17 @@
|
|||
<translation>确定</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="component/backuplistwidget.cpp" line="227"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="230"/>
|
||||
<source>Path already exists : </source>
|
||||
<translation>路径已经存在:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="component/backuplistwidget.cpp" line="236"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="239"/>
|
||||
<source>The file or directory does not exist : </source>
|
||||
<translation>文件或目录不存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="component/backuplistwidget.cpp" line="259"/>
|
||||
<location filename="component/backuplistwidget.cpp" line="262"/>
|
||||
<source>Only data that exists in the follow directorys can be selected: %1.
|
||||
Path:%2 is not in them.</source>
|
||||
<translation>只有后面目录中的数据可以选择:%1。
|
||||
|
@ -1330,7 +1327,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="323"/>
|
||||
<location filename="module/datarestore.cpp" line="1003"/>
|
||||
<location filename="module/datarestore.cpp" line="1009"/>
|
||||
<source>It's busy, please wait</source>
|
||||
<translation>系统正忙,请稍等</translation>
|
||||
</message>
|
||||
|
@ -1529,9 +1526,9 @@ The custom path backup file is not protected, which may cause the backup file to
|
|||
<translation>移动设备:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/systembackup.cpp" line="250"/>
|
||||
<location filename="module/systembackup.cpp" line="492"/>
|
||||
<location filename="module/systembackup.cpp" line="839"/>
|
||||
<location filename="module/systembackup.cpp" line="251"/>
|
||||
<location filename="module/systembackup.cpp" line="493"/>
|
||||
<location filename="module/systembackup.cpp" line="840"/>
|
||||
<source>Back</source>
|
||||
<translation>上一步</translation>
|
||||
</message>
|
||||
|
@ -1778,7 +1775,7 @@ The custom path backup file is not protected, which may cause the backup file to
|
|||
<translation>错误信息请参考日志文件:/var/log/backup.log</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/systembackup.cpp" line="1411"/>
|
||||
<location filename="module/systembackup.cpp" line="1412"/>
|
||||
<source>Home Page</source>
|
||||
<translation>返回首页</translation>
|
||||
</message>
|
||||
|
@ -1793,7 +1790,7 @@ The custom path backup file is not protected, which may cause the backup file to
|
|||
<translation>备份成功</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/systembackup.cpp" line="1460"/>
|
||||
<location filename="module/systembackup.cpp" line="1463"/>
|
||||
<source>The backup is failed</source>
|
||||
<translation>备份失败</translation>
|
||||
</message>
|
||||
|
@ -1867,7 +1864,7 @@ The custom path backup file is not protected, which may cause the backup file to
|
|||
<translation>还原完成</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/systemrestore.cpp" line="353"/>
|
||||
<location filename="module/systemrestore.cpp" line="354"/>
|
||||
<source>Back</source>
|
||||
<translation>上一步</translation>
|
||||
</message>
|
||||
|
@ -2006,7 +2003,7 @@ The custom path backup file is not protected, which may cause the backup file to
|
|||
<translation>错误信息请参考日志文件:/var/log/backup.log</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="module/systemrestore.cpp" line="918"/>
|
||||
<location filename="module/systemrestore.cpp" line="919"/>
|
||||
<source>Home Page</source>
|
||||
<translation>返回首页</translation>
|
||||
</message>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue