diff options
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 3cb9fb20f..2ec069452 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -77,7 +77,8 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : pheGasItem( new PartialPressureGasItem()), po2GasItem( new PartialPressureGasItem()), heartBeatAxis(new DiveCartesianAxis()), - heartBeatItem(new DiveHeartrateItem()) + heartBeatItem(new DiveHeartrateItem()), + isPlotZoomed(prefs.zoomed_plot) { memset(&plotInfo, 0, sizeof(plotInfo)); @@ -421,6 +422,12 @@ void ProfileWidget2::settingsChanged() temperatureAxis->animateChangeLine(itemPos.temperature.expanded); cylinderPressureAxis->animateChangeLine(itemPos.cylinder.expanded); } + if(s.value("zoomed_plot").toBool() != isPlotZoomed){ + isPlotZoomed = s.value("zoomed_plot").toBool(); + int diveId = dataModel->id(); + dataModel->clear(); + plotDives(QList<dive*>() << getDiveById(diveId)); + } } void ProfileWidget2::resizeEvent(QResizeEvent* event) |