profile: don't recreate picture thumbnails on zoom / scroll

The picture thumbnails were recreated on every profile render,
even when zooming / scrolling. In that case, we should only change
the positions.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-10-26 07:42:13 +02:00 committed by Dirk Hohndel
parent 71629521b7
commit 51be326879
2 changed files with 11 additions and 1 deletions

View file

@ -126,6 +126,7 @@ private:
void addActionShortcut(const Qt::Key shortcut, void (ProfileWidget2::*slot)());
void clearPictures();
void plotPicturesInternal(const struct dive *d, bool synchronous);
void updateThumbnails();
void addDivemodeSwitch(int seconds, int divemode);
void addBookmark(int seconds);
void splitDive(int seconds);