123160 【UKUI 3.1.4 走查】【设计】【备份还原】数据更新按钮异常
This commit is contained in:
parent
1746e5da40
commit
2d0387e7d1
|
@ -164,12 +164,13 @@ void DataBackup::initFirstWidget()
|
|||
incrementBackup->setAutoRepeat(true);
|
||||
font.setPixelSize(24);
|
||||
incrementBackup->setFont(font);
|
||||
connect(incrementBackup, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
connect(incrementBackup, &KBorderButton::clicked, this, [=](bool checked) {
|
||||
Q_UNUSED(checked)
|
||||
this->m_uuid = "";
|
||||
this->m_prefixDestPath = "";
|
||||
this->m_backupName = "";
|
||||
this->m_backupPaths.clear();
|
||||
incrementBackup->clearFocus();
|
||||
SelectRestorePoint * selectDialog = new SelectRestorePoint(this, SelectRestorePoint::DATA);
|
||||
connect(selectDialog, &SelectRestorePoint::selected, this, [=](ParseBackupList::BackupPoint backupPoint){
|
||||
this->m_uuid = backupPoint.m_uuid;
|
||||
|
@ -379,7 +380,8 @@ void DataBackup::initSecondWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, [=]() {
|
||||
connect(preStep, &KBorderButton::clicked, this, [=]() {
|
||||
preStep->clearFocus();
|
||||
this->setCurrentIndex(HOME_PAGE);
|
||||
emit this->reset();
|
||||
});
|
||||
|
@ -444,7 +446,8 @@ void DataBackup::initSecondWidget()
|
|||
}
|
||||
});
|
||||
m_udector->getStorageInfo();
|
||||
connect(buttonBrowse, &QPushButton::clicked, this, [=](){
|
||||
connect(buttonBrowse, &KBorderButton::clicked, this, [=](){
|
||||
buttonBrowse->clearFocus();
|
||||
// 是否自定义路径?自定义路径备份文件不受保护,可能导致备份文件丢失或损坏
|
||||
if (!MessageBoxUtils::QMESSAGE_BOX_WARNING_CANCEL(GlobelBackupInfo::inst().getMainWidget(), QObject::tr("Information"),
|
||||
QObject::tr("Are you sure to continue customizing the path?\nThe custom path backup file is not protected, which may cause the backup file to be lost or damaged"),
|
||||
|
@ -694,7 +697,8 @@ void DataBackup::initSecondWidget_inc()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, [=]() {
|
||||
connect(preStep, &KBorderButton::clicked, this, [=]() {
|
||||
preStep->clearFocus();
|
||||
this->setCurrentIndex(HOME_PAGE);
|
||||
emit this->reset();
|
||||
});
|
||||
|
@ -938,7 +942,8 @@ void DataBackup::initThirdWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, [=]() {
|
||||
connect(preStep, &KBorderButton::clicked, this, [=]() {
|
||||
preStep->clearFocus();
|
||||
if (this->m_isIncrement)
|
||||
this->setCurrentIndex(INC_SELECT_PATH_PAGE);
|
||||
else
|
||||
|
@ -1300,7 +1305,8 @@ void DataBackup::initForthWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &DataBackup::on_pre_clicked);
|
||||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &DataBackup::on_pre_clicked);
|
||||
hlayoutCenterLine3->addWidget(preStep);
|
||||
hlayoutCenterLine3->addSpacing(16);
|
||||
|
||||
|
@ -1873,8 +1879,9 @@ void DataBackup::initLastWidget()
|
|||
});
|
||||
|
||||
// 再试一次
|
||||
connect(retry, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
connect(retry, &KBorderButton::clicked, this, [=](bool checked) {
|
||||
Q_UNUSED(checked)
|
||||
retry->clearFocus();
|
||||
this->setCurrentIndex(DataBackupPage::NAME_BACKUP_PAGE);
|
||||
});
|
||||
|
||||
|
|
|
@ -332,7 +332,8 @@ void DataRestore::initSecondWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &DataRestore::on_pre_clicked);
|
||||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &DataRestore::on_pre_clicked);
|
||||
hlayoutCenterFont5->addWidget(preStep);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 下一步按钮
|
||||
|
@ -967,8 +968,9 @@ void DataRestore::initLastWidget()
|
|||
});
|
||||
|
||||
// 再试一次
|
||||
connect(retry, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
connect(retry, &KBorderButton::clicked, this, [=](bool checked) {
|
||||
Q_UNUSED(checked)
|
||||
retry->clearFocus();
|
||||
this->setCurrentIndex(DataRestorePage::RESTORE_PAGE);
|
||||
emit this->startRestore();
|
||||
});
|
||||
|
@ -980,7 +982,7 @@ void DataRestore::initLastWidget()
|
|||
});
|
||||
|
||||
// 重启
|
||||
connect(reboot, &MyPushButton::clicked, this, &DataRestore::reboot);
|
||||
connect(reboot, &KBorderButton::clicked, this, &DataRestore::reboot);
|
||||
|
||||
addWidget(last);
|
||||
}
|
||||
|
|
|
@ -250,7 +250,8 @@ void GhostImage::initSecondWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &GhostImage::on_pre_clicked);
|
||||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &GhostImage::on_pre_clicked);
|
||||
hlayoutLine3->addWidget(preStep);
|
||||
hlayoutLine3->addSpacing(16);
|
||||
|
||||
|
@ -395,7 +396,8 @@ void GhostImage::initThirdWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &GhostImage::on_pre_clicked);
|
||||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &GhostImage::on_pre_clicked);
|
||||
hlayoutCenterFont5->addWidget(preStep);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 下一步按钮
|
||||
|
@ -1153,8 +1155,9 @@ void GhostImage::initLastWidget()
|
|||
});
|
||||
|
||||
// 再试一次
|
||||
connect(retry, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
connect(retry, &KBorderButton::clicked, this, [=](bool checked) {
|
||||
Q_UNUSED(checked)
|
||||
retry->clearFocus();
|
||||
this->setCurrentIndex(GhostImagePage::GHOSTING_PAGE);
|
||||
emit this->startGhost();
|
||||
});
|
||||
|
|
|
@ -250,6 +250,7 @@ void SystemBackup::initSecondWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &MyPushButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
hlayoutLine3->addWidget(preStep);
|
||||
hlayoutLine3->addSpacing(16);
|
||||
|
@ -312,7 +313,8 @@ void SystemBackup::initSecondWidget()
|
|||
}
|
||||
});
|
||||
m_udector->getStorageInfo();
|
||||
connect(buttonBrowse, &QPushButton::clicked, this, [=](){
|
||||
connect(buttonBrowse, &KBorderButton::clicked, this, [=](){
|
||||
buttonBrowse->clearFocus();
|
||||
// 是否自定义路径?自定义路径备份文件不受保护,可能导致备份文件丢失或损坏
|
||||
if (!MessageBoxUtils::QMESSAGE_BOX_WARNING_CANCEL(GlobelBackupInfo::inst().getMainWidget(), QObject::tr("Information"),
|
||||
QObject::tr("Are you sure to continue customizing the path?\nThe custom path backup file is not protected, which may cause the backup file to be lost or damaged"),
|
||||
|
@ -490,7 +492,8 @@ void SystemBackup::initThirdWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
hlayoutCenterFont5->addWidget(preStep);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 下一步按钮
|
||||
|
@ -836,7 +839,8 @@ void SystemBackup::initForthWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &SystemBackup::on_pre_clicked);
|
||||
hlayoutCenterLine3->addWidget(preStep);
|
||||
hlayoutCenterLine3->addSpacing(16);
|
||||
|
||||
|
@ -1468,8 +1472,9 @@ void SystemBackup::initLastWidget()
|
|||
});
|
||||
|
||||
// 再试一次
|
||||
connect(retry, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
connect(retry, &KBorderButton::clicked, this, [=](bool checked) {
|
||||
Q_UNUSED(checked)
|
||||
retry->clearFocus();
|
||||
this->setCurrentIndex(SystemBackupPage::NAME_BACKUP_PAGE);
|
||||
});
|
||||
|
||||
|
|
|
@ -353,7 +353,8 @@ void SystemRestore::initSecondWidget()
|
|||
preStep->setText(tr("Back"));
|
||||
preStep->setEnabled(true);
|
||||
preStep->setAutoRepeat(true);
|
||||
connect(preStep, &MyPushButton::clicked, this, &SystemRestore::on_pre_clicked);
|
||||
connect(preStep, &KBorderButton::clicked, preStep, &KBorderButton::clearFocus);
|
||||
connect(preStep, &KBorderButton::clicked, this, &SystemRestore::on_pre_clicked);
|
||||
hlayoutCenterFont5->addWidget(preStep);
|
||||
hlayoutCenterFont5->addSpacing(16);
|
||||
// 下一步按钮
|
||||
|
@ -983,8 +984,9 @@ void SystemRestore::initLastWidget()
|
|||
});
|
||||
|
||||
// 再试一次
|
||||
connect(retry, &MyPushButton::clicked, this, [=](bool checked) {
|
||||
connect(retry, &KBorderButton::clicked, this, [=](bool checked) {
|
||||
Q_UNUSED(checked)
|
||||
retry->clearFocus();
|
||||
this->setCurrentIndex(SystemRestorePage::RESTORE_PAGE);
|
||||
emit this->startRestore();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue