1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +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);
_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();
}
}