Fixed bug #99 about exiting fullscreen

This commit is contained in:
baydam
2015-01-24 13:43:09 +00:00
parent 584f71e997
commit 4bd5e456e0
2 changed files with 7 additions and 8 deletions

View File

@@ -289,7 +289,8 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event)
{
switch (keyEvent->key()) {
case Qt::Key_F:
outputWindow->setFullScreen(true);
if (outputWindow->windowState() != Qt::WindowFullScreen)
outputWindow->setFullScreen(true);
break;
case Qt::Key_N:
newFile();
@@ -336,6 +337,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event)
else if (keyEvent->key() == Qt::Key_Escape)
{
outputWindow->setFullScreen(false);
setWindowState( windowState() | Qt::WindowActive );
}
eventKey = false;