mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-02 13:58:37 +00:00
fix: fullscreen bug on ubuntu
This commit is contained in:
parent
ad5349c49d
commit
6acef9430e
2 changed files with 7 additions and 3 deletions
|
@ -92,10 +92,9 @@ void VideoForm::showToolForm(bool show)
|
||||||
{
|
{
|
||||||
if (!m_toolForm) {
|
if (!m_toolForm) {
|
||||||
m_toolForm = new ToolForm(this, ToolForm::AP_OUTSIDE_RIGHT);
|
m_toolForm = new ToolForm(this, ToolForm::AP_OUTSIDE_RIGHT);
|
||||||
m_toolForm->move(pos().x() + geometry().width(), pos().y() + 30);
|
|
||||||
|
|
||||||
connect(m_toolForm, &ToolForm::screenshot, this, &VideoForm::screenshot);
|
connect(m_toolForm, &ToolForm::screenshot, this, &VideoForm::screenshot);
|
||||||
}
|
}
|
||||||
|
m_toolForm->move(pos().x() + geometry().width(), pos().y() + 30);
|
||||||
m_toolForm->setVisible(show);
|
m_toolForm->setVisible(show);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +189,7 @@ void VideoForm::switchFullScreen()
|
||||||
//show();
|
//show();
|
||||||
#endif
|
#endif
|
||||||
if (m_skin) {
|
if (m_skin) {
|
||||||
updateStyleSheet(height() > width());
|
updateStyleSheet(m_frameSize.height() > m_frameSize.width());
|
||||||
}
|
}
|
||||||
showToolForm(true);
|
showToolForm(true);
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
|
|
|
@ -103,6 +103,11 @@ void Dialog::initUI()
|
||||||
// mac need more width
|
// mac need more width
|
||||||
setFixedWidth(520);
|
setFixedWidth(520);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_OS_LINUX
|
||||||
|
// linux need more width
|
||||||
|
setFixedWidth(480);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Dialog::execAdbCmd()
|
void Dialog::execAdbCmd()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue