mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Fixed bug: ESC key would not work properly to exit full screen.
This commit is contained in:
+3
-8
@@ -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
@@ -129,7 +129,7 @@ private slots:
|
||||
// Other.
|
||||
void windowModified();
|
||||
void pollOscInterface();
|
||||
void updateOutputAction(int screen);
|
||||
void exitFullScreen();
|
||||
|
||||
public slots:
|
||||
|
||||
|
||||
@@ -61,12 +61,6 @@ OutputGLWindow:: OutputGLWindow(QWidget* parent, const MapperGLCanvas* canvas_)
|
||||
//
|
||||
//}
|
||||
|
||||
{
|
||||
|
||||
{
|
||||
}
|
||||
else
|
||||
}
|
||||
|
||||
void OutputGLWindow::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user