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:
parent
eeb855e415
commit
3f7900bf4e
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user