From 7d741a0022a82cc68a484a9e050eff686ff8bc03 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Tue, 14 Jan 2014 18:36:07 +0100 Subject: Add-main-window-full-screen-feature This patch enables main window full screen mode by menu toggle or pressing F11. [Dirk Hohndel: whitespace cleanup] Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'qt-ui/mainwindow.cpp') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index acbd13046..389df3def 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -469,6 +469,16 @@ void MainWindow::on_actionNextDC_triggered() redrawProfile(); } +void MainWindow::on_actionFullScreen_triggered(bool checked) +{ + if (checked) { + setWindowState(windowState() | Qt::WindowFullScreen); + } + else { + setWindowState(windowState() & ~Qt::WindowFullScreen); + } +} + void MainWindow::on_actionSelectEvents_triggered() { qDebug("actionSelectEvents"); -- cgit v1.2.3-70-g09d2