summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-10-06 10:05:18 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-10-06 10:05:18 +0200
commit5584b748a7e75a1f8b582ba9227dc08b2b2c5649 (patch)
treef7b54604be4a95fe0e56e2f468c057c383121696 /src/mainwindow.cc
parentadd9c8bed73516093b6eb37d4fdf30c592a7f72c (diff)
Add description to project.
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 0ed2f38..8cd34ba 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -91,6 +91,10 @@ MainWindow::MainWindow(Settings& settings)
projectMenu->addAction(act_render);
connect(act_render, SIGNAL(triggered()), this, SLOT(render()));
+ QAction* act_edit_project = new QAction(tr("&Edit Project..."), this);
+ projectMenu->addAction(act_edit_project);
+ connect(act_edit_project, SIGNAL(triggered()), this, SLOT(editProject()));
+
QMenu* testMenu = menuBar()->addMenu(tr("Test"));
QAction* act_test = new QAction(tr("Test"), this);
testMenu->addAction(act_test);
@@ -588,3 +592,10 @@ void MainWindow::render()
RenderDialog renderDialog(this, project);
renderDialog.exec();
}
+
+void MainWindow::editProject()
+{
+ ProjectDialog dlg(this, project);
+ dlg.show();
+ dlg.exec();
+}