fix: fullscreen bug on ubuntu

This commit is contained in:
Unknown 2020-02-27 21:22:17 +08:00 committed by Barry
commit 6acef9430e
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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()