diff options
| author | selsta <selsta@sent.at> | 2019-07-01 10:42:23 +0200 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2021-04-18 15:50:36 +0200 |
| commit | 9fc617956dd4399891c21ae5adbd46499b08f62b (patch) | |
| tree | 584eab67aab2d8630cd0292aa30c36c59f9a0590 /src/qt | |
| parent | 02ae14fd6bcd705ed838fba627775e4d8d52b5f3 (diff) | |
| download | monzero-gui-9fc617956dd4399891c21ae5adbd46499b08f62b.tar.gz monzero-gui-9fc617956dd4399891c21ae5adbd46499b08f62b.tar.xz monzero-gui-9fc617956dd4399891c21ae5adbd46499b08f62b.zip | |
macOS: add basic menubar support
Diffstat (limited to 'src/qt')
| -rw-r--r-- | src/qt/macoshelper.h | 1 | ||||
| -rw-r--r-- | src/qt/macoshelper.mm | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/qt/macoshelper.h b/src/qt/macoshelper.h index c8e86b05..d3bd27b9 100644 --- a/src/qt/macoshelper.h +++ b/src/qt/macoshelper.h @@ -40,6 +40,7 @@ public: static bool openFolderAndSelectItem(const QUrl &path); static QPixmap screenshot(); static QString bundlePath(); + static void disableWindowTabbing(); }; #endif //MACOSHELPER_H diff --git a/src/qt/macoshelper.mm b/src/qt/macoshelper.mm index 1d3b812a..35e42a32 100644 --- a/src/qt/macoshelper.mm +++ b/src/qt/macoshelper.mm @@ -41,6 +41,14 @@ #include "ScopeGuard.h" +void MacOSHelper::disableWindowTabbing() +{ +#ifdef __MAC_10_12 + if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) + [NSWindow setAllowsAutomaticWindowTabbing: NO]; +#endif +} + bool MacOSHelper::isCapsLock() { #ifdef __MAC_10_12 |
