1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-12-02 23:49:09 +01:00

Improved Full-screen layout

This commit is contained in:
Martin Tůma 2021-02-19 19:36:26 +01:00
parent c6fb231186
commit 4f73150e3e

View File

@ -25,6 +25,7 @@
#include <QWindow> #include <QWindow>
#include <QScreen> #include <QScreen>
#include <QStyle> #include <QStyle>
#include <QTabBar>
#include "common/programpaths.h" #include "common/programpaths.h"
#include "data/data.h" #include "data/data.h"
#include "data/poi.h" #include "data/poi.h"
@ -1398,6 +1399,7 @@ void GUI::showFullscreen(bool show)
menuBar()->hide(); menuBar()->hide();
showToolbars(false); showToolbars(false);
_mapView->setFrameStyle(QFrame::NoFrame); _mapView->setFrameStyle(QFrame::NoFrame);
_graphTabWidget->tabBar()->hide();
showFullScreen(); showFullScreen();
} else { } else {
Q_ASSERT(!_windowGeometries.isEmpty()); Q_ASSERT(!_windowGeometries.isEmpty());
@ -1406,6 +1408,7 @@ void GUI::showFullscreen(bool show)
menuBar()->show(); menuBar()->show();
showToolbars(true); showToolbars(true);
_mapView->setFrameStyle(_frameStyle); _mapView->setFrameStyle(_frameStyle);
_graphTabWidget->tabBar()->show();
showNormal(); showNormal();
} }
} }