添加发动机停车

This commit is contained in:
hm
2020-10-16 17:06:18 +08:00
parent 74cdab30db
commit 162481bcaa
27 changed files with 666 additions and 382 deletions
+4 -2
View File
@@ -156,14 +156,16 @@ void PowerSystem::setFloat(void)
this->setParent(nullptr);
QScreen *screen=QGuiApplication::primaryScreen ();;
this->move((screen->availableGeometry().width()-this->width())/2,(screen->availableGeometry().height()-this->height())/2);
this->show();
}
else
{
this->setParent(m_parent);
this->move(0,0);
this->hide();
//qDebug() << m_parent->children();
}
this->show();
}
void PowerSystem::setColor(QWidget *w,state s)