diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 2 | ||||
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 5 | ||||
-rw-r--r-- | qt-ui/profile/profilewidget2.h | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 5fc0eb0ad..7335711e9 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -1018,7 +1018,7 @@ void MainTab::divetype_Changed(int index) displayed_dive.dc.divemode = (enum dive_comp_type) index; update_setpoint_events(&displayed_dive.dc); markChangedWidget(ui.DiveType); - MainWindow::instance()->graphics()->replot(); + MainWindow::instance()->graphics()->recalcCeiling(); } void MainTab::on_watertemp_textChanged(const QString &text) diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 57c89b99f..db3d0be35 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -648,6 +648,11 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) } } +void ProfileWidget2::recalcCeiling() +{ + diveCeiling->recalc(); +} + void ProfileWidget2::settingsChanged() { // if we are showing calculated ceilings then we have to replot() diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index abcf9fd23..a25780c7e 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -82,6 +82,7 @@ public: double getFontPrintScale(); void setFontPrintScale(double scale); void clearHandlers(); + void recalcCeiling(); void setToolTipVisibile(bool visible); State currentState; |