mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 03:25:02 +00:00
feat: videoForm delay show
This commit is contained in:
parent
78ebca0a6d
commit
37b792535b
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue