feat: videoForm delay show

This commit is contained in:
rankun 2020-03-09 12:37:54 +08:00
parent 78ebca0a6d
commit 37b792535b

View file

@ -37,7 +37,6 @@ Device::Device(DeviceParams params, QObject *parent)
m_controller = new Controller(params.gameScript, this);
m_videoForm = new VideoForm(Config::getInstance().getSkin());
m_videoForm->setDevice(this);
m_videoForm->show();
}
m_stream = new Stream(this);
@ -222,8 +221,13 @@ void Device::initSignals()
QRect rc = Config::getInstance().getRect(getSerial());
if (rc.isValid()) {
m_videoForm->setGeometry(rc);
m_videoForm->move(rc.topLeft());
m_videoForm->resize(rc.size());
// TODO: setGeometry magneticwidget bug
//m_videoForm->setGeometry(rc);
}
// videoForm delay show
m_videoForm->show();
}
// init recorder