diff options
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-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() |