aboutsummaryrefslogtreecommitdiff
path: root/app/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/mainwindow.cpp')
-rw-r--r--app/mainwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index a365f38..3fcc9c5 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -18,9 +18,16 @@ MainWindow::MainWindow(Renderer r)
saveAct->setStatusTip(tr("Save the rendered image"));
connect(saveAct, &QAction::triggered, this, &MainWindow::saveimage);
+ auto stopAct = new QAction(tr("&Stop"), this);
+ stopAct->setStatusTip(tr("Stop and sync threads"));
+ QObject::connect(stopAct, &QAction::triggered, &m_render, &RenderCoordinator::stop);
+
fileMenu = menuBar()->addMenu(tr("&File"));
fileMenu->addAction(saveAct);
+ fileMenu = menuBar()->addMenu(tr("&Render"));
+ fileMenu->addAction(stopAct);
+
helpMenu = menuBar()->addMenu(tr("&Help"));
helpMenu->addAction(tr("About Qt"), qApp, &QApplication::aboutQt);