aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp10
-rw-r--r--qt-ui/mainwindow.h1
-rw-r--r--qt-ui/mainwindow.ui15
3 files changed, 26 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");
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index 7d14fc7fe..7da4dbceb 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -87,6 +87,7 @@ private slots:
void on_actionViewAll_triggered();
void on_actionPreviousDC_triggered();
void on_actionNextDC_triggered();
+ void on_actionFullScreen_triggered(bool checked);
/* other menu actions */
void on_actionSelectEvents_triggered();
diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui
index 3748f5950..854c9cdd3 100644
--- a/qt-ui/mainwindow.ui
+++ b/qt-ui/mainwindow.ui
@@ -178,6 +178,7 @@
<addaction name="actionPreviousDC"/>
<addaction name="actionNextDC"/>
<addaction name="separator"/>
+ <addaction name="actionFullScreen"/>
</widget>
<widget class="QMenu" name="menuFilter">
<property name="title">
@@ -465,6 +466,20 @@
<string>Import from Divelogs.de</string>
</property>
</action>
+ <action name="actionFullScreen">
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>&amp;Full Screen</string>
+ </property>
+ <property name="toolTip">
+ <string>Toggle Full Screen</string>
+ </property>
+ <property name="shortcut">
+ <string>F11</string>
+ </property>
+ </action>
</widget>
<customwidgets>
<customwidget>