添加发动机停车
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user