mainwindow: disable fullscreen support by default

Require the FULLSCREEN_SUPPORT macro to enable fullscreen
support.

The toggle was added 4 years ago in Subsurface, but with the
current version of Qt 5.9.x, it's very buggy on Windows and
Ubuntu. While it's possible to make this work on Windows,
it seems to behave broken in different ways on different
versiosn of Ubuntu.

Fixes #705

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-10-21 23:25:42 +03:00 committed by Dirk Hohndel
parent eeb855e415
commit 3f7900bf4e

View file

@ -313,6 +313,14 @@ MainWindow::MainWindow() : QMainWindow(),
ui.profTankbar->setChecked(sWrapper->techDetails->tankBar());
ui.profTissues->setChecked(sWrapper->techDetails->percentageGraph());
ui.profScaled->setChecked(sWrapper->techDetails->zoomedPlot());
// full screen support is buggy on Windows and Ubuntu.
// require the FULLSCREEN_SUPPORT macro to enable it!
#ifndef FULLSCREEN_SUPPORT
ui.actionFullScreen->setEnabled(false);
ui.actionFullScreen->setVisible(false);
setWindowState(windowState() & ~Qt::WindowFullScreen);
#endif
}
MainWindow::~MainWindow()