diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-07-15 17:56:18 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-23 15:58:55 -0700 |
commit | b3feaa80e26510928c73e92049ec346841f6093a (patch) | |
tree | 1a1f002959ea09aa5a16a5cc04ace06326941377 /profile-widget/divepixmapitem.h | |
parent | c7428859840bfcf973a14f27c6376e39e915cb29 (diff) | |
download | subsurface-b3feaa80e26510928c73e92049ec346841f6093a.tar.gz |
Dive video: paint duration-bar above thumbnail in profile plot
Paint a rectangle on top of thumbnails indicating the run-time
of the video.
Use the z=100.0-101.0 range for painting the thumbnails, whereby
the z-value increases uniformly from first to last thumbnail
(sorted by timestamp). The duration-bars are placed at z-values
midway between those of the thumbnails.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/divepixmapitem.h')
-rw-r--r-- | profile-widget/divepixmapitem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/profile-widget/divepixmapitem.h b/profile-widget/divepixmapitem.h index 6abe410a6..f8b922981 100644 --- a/profile-widget/divepixmapitem.h +++ b/profile-widget/divepixmapitem.h @@ -32,6 +32,7 @@ class DivePictureItem : public DivePixmapItem { public: DivePictureItem(QGraphicsItem *parent = 0); void setPixmap(const QPixmap& pix); + void setBaseZValue(double z); public slots: void settingsChanged(); void removePicture(); @@ -45,6 +46,7 @@ private: QGraphicsRectItem *canvas; QGraphicsRectItem *shadow; CloseButtonItem *button; + double baseZValue; }; #endif // DIVEPIXMAPITEM_H |