From e5d5c06a0ea5f8b2f6849acdf9b68475031add98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 21 Feb 2021 10:00:42 +0100 Subject: [PATCH] Fine-tune OS X fullscreen layout --- src/GUI/gui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 68c78b68..8469da10 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -1400,6 +1400,9 @@ void GUI::showFullscreen(bool show) showToolbars(false); _mapView->setFrameStyle(QFrame::NoFrame); _graphTabWidget->tabBar()->hide(); +#ifdef Q_OS_MAC + _graphTabWidget->setDocumentMode(true); +#endif // Q_OS_MAC showFullScreen(); } else { Q_ASSERT(!_windowGeometries.isEmpty()); @@ -1409,6 +1412,9 @@ void GUI::showFullscreen(bool show) showToolbars(true); _mapView->setFrameStyle(_frameStyle); _graphTabWidget->tabBar()->show(); +#ifdef Q_OS_MAC + _graphTabWidget->setDocumentMode(false); +#endif // Q_OS_MAC showNormal(); } }