summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-22 19:55:48 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-22 19:58:14 -0700
commitaeac5fcb6d3134e644f78c3390ca6253da86031e (patch)
tree5ef3a50e487d99f2261c2d755889720bfac290f1 /qt-ui/mainwindow.h
parenta761a330695df7007349587a599565f328a6998e (diff)
downloadsubsurface-aeac5fcb6d3134e644f78c3390ca6253da86031e.tar.gz
Add refreshProfile member function to MainWindow class
While the whole idea of calling these functions through the MainWindow instance is atrocious, until we change the architecture of all this refreshProfile() is a useful function to have. In order to make this cleaner to implement I allowed an argument to ProfileWidget's replot() which allows picking a specific dive. By defaulting this to 0 we get the previous behavior when calling replot() without an argument. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index 9ff2a2041..25c9b3eba 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -189,6 +189,7 @@ slots:
void refreshDisplay(bool doRecreateDiveList = true);
void recreateDiveList();
void showProfile();
+ void refreshProfile();
void editCurrentDive();
void planCanceled();
void planCreated();