1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 19:55:53 +01:00

Fine-tune OS X fullscreen layout

This commit is contained in:
Martin Tůma 2021-02-21 10:00:42 +01:00
parent 5f18498138
commit e5d5c06a0e

View File

@ -1400,6 +1400,9 @@ void GUI::showFullscreen(bool show)
showToolbars(false); showToolbars(false);
_mapView->setFrameStyle(QFrame::NoFrame); _mapView->setFrameStyle(QFrame::NoFrame);
_graphTabWidget->tabBar()->hide(); _graphTabWidget->tabBar()->hide();
#ifdef Q_OS_MAC
_graphTabWidget->setDocumentMode(true);
#endif // Q_OS_MAC
showFullScreen(); showFullScreen();
} else { } else {
Q_ASSERT(!_windowGeometries.isEmpty()); Q_ASSERT(!_windowGeometries.isEmpty());
@ -1409,6 +1412,9 @@ void GUI::showFullscreen(bool show)
showToolbars(true); showToolbars(true);
_mapView->setFrameStyle(_frameStyle); _mapView->setFrameStyle(_frameStyle);
_graphTabWidget->tabBar()->show(); _graphTabWidget->tabBar()->show();
#ifdef Q_OS_MAC
_graphTabWidget->setDocumentMode(false);
#endif // Q_OS_MAC
showNormal(); showNormal();
} }
} }