Moved the DivePlanner to the MainWindow.

Now, activating the dive planner will hide the profile
and show the planner on the same place. we still need
a way to 'cancel' or 'accept' the profile created.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-06-27 14:48:03 -03:00
parent de7506b44d
commit 1244438b01
5 changed files with 53 additions and 45 deletions

View file

@ -223,11 +223,12 @@ void MainWindow::on_actionPrint_triggered()
void MainWindow::on_actionDivePlanner_triggered()
{
DivePlanner *planner = DivePlanner::instance();
if (planner->exec() == QDialog::Accepted){
struct dive *d = planner->getDive();
qDebug() << "Finish me.";
}
ui->stackedWidget->setCurrentIndex(1);
}
void MainWindow::showProfile()
{
ui->stackedWidget->setCurrentIndex(0);
}