diff options
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r-- | src/mainwindow.cc | 11 |
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(); +} |