forked from github_mirror/framelesshelper
mac: add a comment
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
e48fc7e01f
commit
9df1e9d7b5
|
@ -361,7 +361,8 @@ public Q_SLOTS:
|
|||
nswindow.showsToolbarButton = NO;
|
||||
nswindow.movableByWindowBackground = 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:NSWindowMiniaturizeButton].hidden = (visible ? NO : YES);
|
||||
[nswindow standardWindowButton:NSWindowZoomButton].hidden = (visible ? NO : YES);
|
||||
|
|
Loading…
Reference in New Issue