mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-07 07:58:58 +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_controller = new Controller(params.gameScript, this);
|
||||||
m_videoForm = new VideoForm(Config::getInstance().getSkin());
|
m_videoForm = new VideoForm(Config::getInstance().getSkin());
|
||||||
m_videoForm->setDevice(this);
|
m_videoForm->setDevice(this);
|
||||||
m_videoForm->show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_stream = new Stream(this);
|
m_stream = new Stream(this);
|
||||||
|
@ -222,8 +221,13 @@ void Device::initSignals()
|
||||||
|
|
||||||
QRect rc = Config::getInstance().getRect(getSerial());
|
QRect rc = Config::getInstance().getRect(getSerial());
|
||||||
if (rc.isValid()) {
|
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
|
// init recorder
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue