aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-01-14 18:36:07 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-15 06:28:01 +0700
commit7d741a0022a82cc68a484a9e050eff686ff8bc03 (patch)
tree1ebf1fccd0a8a2a6ec7e0b1b0c0d6c8cba162ee5 /qt-ui/mainwindow.cpp
parent349f3e9cdef4b05fa6bfd3171f59339fb18fe1d1 (diff)
downloadsubsurface-7d741a0022a82cc68a484a9e050eff686ff8bc03.tar.gz
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 <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp10
1 files changed, 10 insertions, 0 deletions
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");