mac: add a comment

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2023-05-20 20:07:43 +08:00
parent e48fc7e01f
commit 9df1e9d7b5
1 changed files with 2 additions and 1 deletions

View File

@ -361,7 +361,8 @@ public Q_SLOTS:
nswindow.showsToolbarButton = NO; nswindow.showsToolbarButton = NO;
nswindow.movableByWindowBackground = NO; nswindow.movableByWindowBackground = NO;
nswindow.movable = NO; nswindow.movable = NO;
#if !(QT_VERSION >= QT_VERSION_CHECK(6,0,0) && QT_VERSION <= QT_VERSION_CHECK(6,2,4)) // For some unknown reason, we don't need the following hack in some specific Qt versions.
#if !(QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && QT_VERSION <= QT_VERSION_CHECK(6, 2, 4))
[nswindow standardWindowButton:NSWindowCloseButton].hidden = (visible ? NO : YES); [nswindow standardWindowButton:NSWindowCloseButton].hidden = (visible ? NO : YES);
[nswindow standardWindowButton:NSWindowMiniaturizeButton].hidden = (visible ? NO : YES); [nswindow standardWindowButton:NSWindowMiniaturizeButton].hidden = (visible ? NO : YES);
[nswindow standardWindowButton:NSWindowZoomButton].hidden = (visible ? NO : YES); [nswindow standardWindowButton:NSWindowZoomButton].hidden = (visible ? NO : YES);