add ewadme

This commit is contained in:
hm
2020-10-10 15:25:17 +08:00
parent e3c98c6259
commit 44fd672a12
6 changed files with 45 additions and 1 deletions
+3
View File
@@ -180,6 +180,9 @@ void PowerSystem::setFloat(void)
if(this->parent())
{
this->setParent(nullptr);
QScreen *screen=QGuiApplication::primaryScreen ();;
this->move((screen->availableGeometry().width()-this->width())/2,(screen->availableGeometry().height()-this->height())/2);
}
else
{