mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
349f3e9cde
commit
7d741a0022
3 changed files with 26 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue