mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-07 16:19:38 +02:00
Manage close event (unchecks the menu item in main window)
This commit is contained in:
@@ -677,6 +677,7 @@ void MainWindow::createLayout()
|
||||
// Output changed -> change destinatioin
|
||||
connect(outputWindow->getCanvas(), SIGNAL(shapeChanged(Shape*)),
|
||||
destinationCanvas, SLOT(updateCanvas()));
|
||||
|
||||
// connect(destinationCanvas, SIGNAL(imageChanged()),
|
||||
// sourceCanvas, SLOT(updateCanvas()));
|
||||
|
||||
@@ -830,8 +831,13 @@ void MainWindow::createActions()
|
||||
displayOutputWindow->setStatusTip(tr("Display output window"));
|
||||
displayOutputWindow->setCheckable(true);
|
||||
displayOutputWindow->setChecked(true);
|
||||
|
||||
// Manage show/hide of GL output window.
|
||||
connect(displayOutputWindow, SIGNAL(toggled(bool)), this, SLOT(toggleOutputWindow(bool)));
|
||||
|
||||
// When closing the GL output window, uncheck the action in menu.
|
||||
connect(outputWindow, SIGNAL(closed()), displayOutputWindow, SLOT(toggle()));
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::createMenus()
|
||||
|
||||
Reference in New Issue
Block a user