hlp:更新翻译、喷嘴到底后等至少3秒检查相检、状态机统一打印和回收槽状态、修复数字键盘输入bug
This commit is contained in:
+6
-7
@@ -568,15 +568,14 @@ fi\n" ;
|
||||
void SystemManage::on_pushButtonUpdateSoftware_pressed()
|
||||
{
|
||||
if(sysPara->status.updateSoftEN==0){
|
||||
QWidget *p = dialogUpateMm->parentWidget();
|
||||
if (p) {
|
||||
QPoint topLeft = p->mapToGlobal(QPoint(0, 0));
|
||||
int x = topLeft.x() + (p->width() - dialogUpateMm->width()) / 2;
|
||||
int y = topLeft.y() + (p->height() - dialogUpateMm->height()) / 2 - 100;
|
||||
dialogUpateMm->move(x, y);
|
||||
}
|
||||
dialogUpateMm->clearAuth();
|
||||
dialogUpateMm->show();
|
||||
|
||||
QPoint topLeft = this->mapToGlobal(QPoint(0, 0));
|
||||
int x = topLeft.x() + (this->width() - dialogUpateMm->width()) / 2;
|
||||
int y = topLeft.y() + (this->height() - dialogUpateMm->height()) / 2 - 200;
|
||||
dialogUpateMm->move(x, y);
|
||||
|
||||
}
|
||||
else ondialogAuthorizationAccepted();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user