diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-06 11:49:29 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-09 19:19:04 +0100 |
commit | fbd74c26d6652543cbc7331734e304dbf2ef5113 (patch) | |
tree | d473a2807097f8e1c04e07d33e94dd7fd067fe38 /profile-widget/ruleritem.h | |
parent | 3025e0630de2b9ced3d0aadd1513cb0e1c93b159 (diff) | |
download | subsurface-fbd74c26d6652543cbc7331734e304dbf2ef5113.tar.gz |
Profile: Change RulerItem2 to use index instead of pointer
To make the pressure data dynamic (size of the arrays depending
on the cylinders in the dive), it has to be separated from the
standard plot_data structure. To enable this, use indexes instead
of pointers to plot_data elements. This commit converts
the RulerItem2 to use an index.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/ruleritem.h')
-rw-r--r-- | profile-widget/ruleritem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/ruleritem.h b/profile-widget/ruleritem.h index 2c7c5b3ea..dd028fc1f 100644 --- a/profile-widget/ruleritem.h +++ b/profile-widget/ruleritem.h @@ -25,7 +25,7 @@ protected: void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override; private: struct plot_info pInfo; - struct plot_data *entry; + int idx; RulerItem2 *ruler; DiveCartesianAxis *timeAxis; DiveCartesianAxis *depthAxis; |