There was an error while loading. Please reload this page.
1 parent b248d30 commit 024630cCopy full SHA for 024630c
1 file changed
src/platform/macos.mm
@@ -3,13 +3,16 @@
3
#include <QDebug>
4
#include <QMainWindow>
5
6
-void setupMacOSWindow(QMainWindow *window) {
+void setupMacOSWindow(QMainWindow *window)
7
+{
8
window->setUnifiedTitleAndToolBarOnMac(true);
9
- NSView* nativeView = reinterpret_cast<NSView*>(window->winId());
10
- NSWindow* nativeWindow = [nativeView window];
+ NSView *nativeView = reinterpret_cast<NSView *>(window->winId());
11
+ NSWindow *nativeWindow = [nativeView window];
12
- [nativeWindow setStyleMask:[nativeWindow styleMask] | NSWindowStyleMaskFullSizeContentView | NSWindowTitleHidden];
13
+ [nativeWindow setStyleMask:[nativeWindow styleMask] |
14
+ NSWindowStyleMaskFullSizeContentView |
15
+ NSWindowTitleHidden];
16
[nativeWindow setTitlebarAppearsTransparent:YES];
17
[nativeWindow center];
18
}
0 commit comments