profile: move zooming/panning code to ProfileView

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2023-05-20 17:12:33 +02:00
parent 9ab7819fd1
commit 413b236867
4 changed files with 94 additions and 85 deletions

View file

@ -255,7 +255,7 @@ void ProfileWidget::plotDive(dive *dIn, int dcIn)
setDive(editedDive.get(), dc);
} else if (d) {
//view->setProfileState(d, dc);
//view->resetZoom(); // when switching dive, reset the zoomLevel
view->resetZoom(); // when switching dive, reset the zoomLevel
view->plotDive(d, dc);
setDive(d, dc);
} else {