mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-01 05:18:38 +00:00
setFixedSize影响linux全屏,
fremlesswindow不影响linux全屏
This commit is contained in:
parent
5f1c120a89
commit
01898bfbda
1 changed files with 4 additions and 1 deletions
|
@ -244,8 +244,11 @@ void VideoForm::updateShowSize(const QSize &newSize)
|
||||||
//showSize.setHeight(showSize.height() - titleBarHeight);
|
//showSize.setHeight(showSize.height() - titleBarHeight);
|
||||||
|
|
||||||
if (showSize != size()) {
|
if (showSize != size()) {
|
||||||
|
#ifdef Q_OS_OSX
|
||||||
setFixedSize(showSize);
|
setFixedSize(showSize);
|
||||||
//resize(showSize);
|
#else
|
||||||
|
resize(showSize);
|
||||||
|
#endif
|
||||||
updateStyleSheet(vertical);
|
updateStyleSheet(vertical);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue