diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-10-21 23:25:42 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-22 06:09:05 -0400 |
commit | 3f7900bf4e382cc57133e307efeaa3856c90c505 (patch) | |
tree | e8a4747dbb752f95c9b94ea778d2753bb2a53178 /desktop-widgets | |
parent | eeb855e41566856029c564820c5f52a040519592 (diff) | |
download | subsurface-3f7900bf4e382cc57133e307efeaa3856c90c505.tar.gz |
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 1445ea93b..accf0b267 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -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() |