Fix the native titlebar buttons don't show below Qt 6.2.4. (#226)
This commit is contained in:
parent
9df1e9d7b5
commit
3a18f36d3f
|
@ -362,7 +362,7 @@ public Q_SLOTS:
|
||||||
nswindow.movableByWindowBackground = NO;
|
nswindow.movableByWindowBackground = NO;
|
||||||
nswindow.movable = NO;
|
nswindow.movable = NO;
|
||||||
// For some unknown reason, we don't need the following hack in some specific Qt versions.
|
// 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))
|
#if 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);
|
||||||
|
|
Loading…
Reference in New Issue