summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-17 22:18:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-17 22:18:07 -0700
commitce786bb8b3d1ede51533e1a42c05edce59e3210f (patch)
tree895ca43141464de82abb0bac36add878c1df4720 /qt-ui/mainwindow.cpp
parentf3f7bf51fa1dbe9cdb859e1a45b20c108613275b (diff)
parentcffc66f45a9532076b9001825c51818df4688e3c (diff)
downloadsubsurface-ce786bb8b3d1ede51533e1a42c05edce59e3210f.tar.gz
Merge branch 'Globe' of https://github.com/tcanabrava/subsurface
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index c5a4e5ce3..1eb741244 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -32,16 +32,19 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow())
readSettings();
setWindowIcon(QIcon(":subsurface-icon"));
connect(ui->ListWidget, SIGNAL(currentDiveChanged(int)), this, SLOT(current_dive_changed(int)));
+ ui->globeMessage->hide();
+ ui->globe->setMessageWidget(ui->globeMessage);
+ ui->globeMessage->setCloseButtonVisible(false);
ui->ProfileWidget->setFocusProxy(ui->ListWidget);
ui->ListWidget->reload();
ui->ListWidget->setFocus();
- ui->widget->reload();
+ ui->globe->reload();
}
void MainWindow::current_dive_changed(int divenr)
{
select_dive(divenr);
- ui->widget->centerOn(get_dive(selected_dive));
+ ui->globe->centerOn(get_dive(selected_dive));
redrawProfile();
ui->InfoWidget->updateDiveInfo(divenr);
}
@@ -79,7 +82,7 @@ void MainWindow::on_actionOpen_triggered()
process_dives(FALSE, FALSE);
ui->InfoWidget->reload();
- ui->widget->reload();
+ ui->globe->reload();
ui->ListWidget->reload();
ui->ListWidget->setFocus();
}