mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: pass dive to EventItem
Don't access the global displayed_dive variable in an effort to make the profile reentrant. Note that this still accesses the global dc_number variable, which will likely have to be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
09287809eb
commit
be9f9efb0e
5 changed files with 16 additions and 9 deletions
|
|
@ -13,7 +13,7 @@ class DiveEventItem : public DivePixmapItem {
|
|||
public:
|
||||
DiveEventItem(QGraphicsItem *parent = 0);
|
||||
~DiveEventItem();
|
||||
void setEvent(struct event *ev, struct gasmix lastgasmix);
|
||||
void setEvent(const struct dive *d, struct event *ev, struct gasmix lastgasmix);
|
||||
struct event *getEvent();
|
||||
void eventVisibilityChanged(const QString &eventName, bool visible);
|
||||
void setVerticalAxis(DiveCartesianAxis *axis, int speed);
|
||||
|
|
@ -32,6 +32,7 @@ private:
|
|||
DiveCartesianAxis *hAxis;
|
||||
DivePlotDataModel *dataModel;
|
||||
struct event *internalEvent;
|
||||
const struct dive *dive;
|
||||
};
|
||||
|
||||
#endif // DIVEEVENTITEM_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue