From 9bd77b51f52d46ea42c9b6078ca43715384ee6dd Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 11 Feb 2014 10:03:08 -0800 Subject: [PATCH] Give the widget for the new profile a better name Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 8 ++++---- qt-ui/mainwindow.ui | 2 +- 2 files changed, 5 insertions(+), 5 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() << (current_dive) ); + ui.newProfile->plotDives( QList() << (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() << (current_dive)); + ui.newProfile->plotDives(QList() << (current_dive)); redrawProfile(); } @@ -494,7 +494,7 @@ void MainWindow::on_actionNextDC_triggered() { dc_number++; ui.InfoWidget->updateDiveInfo(selected_dive); - ui.graphicsView->plotDives(QList() << (current_dive)); + ui.newProfile->plotDives(QList() << (current_dive)); redrawProfile(); } diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui index c04fc2044..8de11eaad 100644 --- a/qt-ui/mainwindow.ui +++ b/qt-ui/mainwindow.ui @@ -514,7 +514,7 @@ - +