From 4b862cf43a72b01edc1c8d51e4b90523157e1506 Mon Sep 17 00:00:00 2001 From: rankun Date: Sun, 27 Jan 2019 15:43:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:mac=E4=B8=8A=E6=97=A0=E8=BE=B9=E6=A1=86?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=85=A8=E5=B1=8F=E6=9C=89=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E6=9A=82=E6=97=B6=E5=B1=8F=E8=94=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QtScrcpy/dialog.ui | 8 ++++---- QtScrcpy/videoform.cpp | 6 ++++-- TODO.txt | 2 ++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/QtScrcpy/dialog.ui b/QtScrcpy/dialog.ui index e96930c..a2b8cea 100644 --- a/QtScrcpy/dialog.ui +++ b/QtScrcpy/dialog.ui @@ -6,19 +6,19 @@ 0 0 - 560 - 577 + 502 + 600 - 560 + 502 0 - 560 + 502 16777215 diff --git a/QtScrcpy/videoform.cpp b/QtScrcpy/videoform.cpp index 0e16338..b300a6e 100644 --- a/QtScrcpy/videoform.cpp +++ b/QtScrcpy/videoform.cpp @@ -79,11 +79,13 @@ void VideoForm::initUI() } setAttribute(Qt::WA_DeleteOnClose); + // TODO mac: Qt::FramelessWindowHit full screen is abnormal +#ifndef Q_OS_OSX // 去掉标题栏 - setWindowFlags(Qt::FramelessWindowHint); + setWindowFlags(Qt::FramelessWindowHint); // 根据图片构造异形窗口 setAttribute(Qt::WA_TranslucentBackground); - +#endif setMouseTracking(true); ui->loadingWidget->setAttribute(Qt::WA_DeleteOnClose); ui->videoWidget->setMouseTracking(true); diff --git a/TODO.txt b/TODO.txt index 2b37e73..fb7fb64 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,3 +1,5 @@ +// TODO mac: Qt::FramelessWindowHit full screen is abnormal + չģָȣ ģָ(ע⣺Ͷû)