subsurface/profile-widget/divepercentageitem.h
Berthold Stoeger 7aacde3169 profile: remove ProfileScene::dataModel
All data access is now directly via the plot_info structure
owned by the ProfileScene itself.

Also removes DivePercentageItem::hColumn, which was an
artifact from the DivePlotDataModel.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-12-17 11:54:23 -08:00

21 lines
503 B
C++

#ifndef DIVEPERCENTAGEITEM_H
#define DIVEPERCENTAGEITEM_H
#include <QGraphicsPixmapItem>
struct dive;
struct divecomputer;
struct plot_info;
class DiveCartesianAxis;
class DivePercentageItem : public QGraphicsPixmapItem {
public:
DivePercentageItem(const DiveCartesianAxis &hAxis, const DiveCartesianAxis &vAxis, double dpr);
void replot(const dive *d, const divecomputer *dc, const plot_info &pi);
private:
const DiveCartesianAxis &hAxis;
const DiveCartesianAxis &vAxis;
double dpr;
};
#endif