diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-06-30 12:55:55 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-13 17:07:22 -0700 |
commit | 0aaa1bf3862901933ed68c15a38fed9dc4c621a4 (patch) | |
tree | 191f7833c73d1f428f0437336c023f320180c281 /profile-widget/profilewidget2.h | |
parent | b2422f88569a2bba50db74835fcd09dd5b070ec9 (diff) | |
download | subsurface-0aaa1bf3862901933ed68c15a38fed9dc4c621a4.tar.gz |
Dive pictures: update thumbnail positions on deletion
If pictures were deleted, the remaining thumbails where staying at
their positions. Only when switching between dives, the new positions
were recalculated. Do the recalculation immediately. More precisely:
the x-coordinate, which is determined by the timestamp, stays identical.
Only the y-coordinate is recalculated such that overlapping of thumbnails
is avoided.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/profilewidget2.h')
-rw-r--r-- | profile-widget/profilewidget2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index c7db09a92..4fdc1dc26 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -240,6 +240,7 @@ private: bool operator< (const PictureEntry &e) const; }; std::vector<PictureEntry> pictures; + void calculatePictureYPositions(); QList<DiveHandler *> handles; void repositionDiveHandlers(); |