Fixed bug: ESC key would not work properly to exit full screen.

This commit is contained in:
Tats
2016-03-26 19:40:51 -04:00
parent 512f30d1a6
commit 6f9fde311f
3 changed files with 4 additions and 15 deletions
+3 -8
View File
@@ -1637,7 +1637,7 @@ void MainWindow::createActions()
closeOutput->setShortcut(Qt::Key_Escape);
closeOutput->setShortcutContext(Qt::ApplicationShortcut);
addAction(closeOutput);
connect(closeOutput, SIGNAL(triggered(bool)), outputWindow, SLOT(close()));
connect(closeOutput, SIGNAL(triggered(bool)), this, SLOT(exitFullScreen()));
// Toggle display of canvas controls.
displayControlsAction = new QAction(tr("&Display Canvas Controls"), this);
@@ -2927,14 +2927,9 @@ void MainWindow::pollOscInterface()
#endif
}
void MainWindow::updateOutputAction(int screen)
void MainWindow::exitFullScreen()
{
// Change window (untested).
if (outputWindow->isFullScreen())
{
outputWindow->setFullScreen(false);
outputWindow->setFullScreen(true);
}
outputFullScreenAction->setChecked(false);
}
// void MainWindow::applyOscCommand(const QVariantList& command)
+1 -1
View File
@@ -129,7 +129,7 @@ private slots:
// Other.
void windowModified();
void pollOscInterface();
void updateOutputAction(int screen);
void exitFullScreen();
public slots:
-6
View File
@@ -61,12 +61,6 @@ OutputGLWindow:: OutputGLWindow(QWidget* parent, const MapperGLCanvas* canvas_)
//
//}
{
{
}
else
}
void OutputGLWindow::closeEvent(QCloseEvent *event)
{