diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-11 10:03:08 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-11 12:36:03 -0800 |
commit | 9bd77b51f52d46ea42c9b6078ca43715384ee6dd (patch) | |
tree | caaf14cc44cc55b1b9d55ba7bef9adb42efec82a /qt-ui/mainwindow.cpp | |
parent | d1c4bcf570cdab98785a453855428a1e8dcc944f (diff) | |
download | subsurface-9bd77b51f52d46ea42c9b6078ca43715384ee6dd.tar.gz |
Give the widget for the new profile a better name
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 08c678974..217c66dbb 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -105,7 +105,7 @@ void MainWindow::current_dive_changed(int divenr) * a single profile plot on the canvas. I know that we are using only one right now, * but let's keep like this so it's easy to change when we need? :) */ - ui.graphicsView->plotDives( QList<dive*>() << (current_dive) ); + ui.newProfile->plotDives( QList<dive*>() << (current_dive) ); ui.InfoWidget->updateDiveInfo(divenr); } @@ -171,7 +171,7 @@ void MainWindow::on_actionClose_triggered() if (unsaved_changes() && (askSaveChanges() == false)) return; - ui.graphicsView->setEmptyState(); + ui.newProfile->setEmptyState(); /* free the dives and trips */ while (dive_table.nr) delete_single_dive(0); @@ -486,7 +486,7 @@ void MainWindow::on_actionPreviousDC_triggered() { dc_number--; ui.InfoWidget->updateDiveInfo(selected_dive); - ui.graphicsView->plotDives(QList<struct dive*>() << (current_dive)); + ui.newProfile->plotDives(QList<struct dive*>() << (current_dive)); redrawProfile(); } @@ -494,7 +494,7 @@ void MainWindow::on_actionNextDC_triggered() { dc_number++; ui.InfoWidget->updateDiveInfo(selected_dive); - ui.graphicsView->plotDives(QList<struct dive*>() << (current_dive)); + ui.newProfile->plotDives(QList<struct dive*>() << (current_dive)); redrawProfile(); } |