Add the depth text.

Depth text got added to the new profile.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-01-21 13:27:08 -02:00 committed by Dirk Hohndel
parent caba6500d6
commit 0a4e21a168
6 changed files with 48 additions and 2 deletions

View file

@ -21,6 +21,7 @@
class DiveTextItem;
class DiveCartesianAxis;
class QAbstractTableModel;
struct plot_data;
class AbstractProfilePolygonItem : public QObject, public QGraphicsPolygonItem{
Q_OBJECT
@ -43,13 +44,16 @@ protected:
QAbstractTableModel *dataModel;
int hDataColumn;
int vDataColumn;
QList<DiveTextItem*> texts;
};
class DiveProfileItem : public AbstractProfilePolygonItem{
Q_OBJECT
public:
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
virtual void modelDataChanged();
void plot_depth_sample(struct plot_data *entry,QFlags<Qt::AlignmentFlag> flags,const QColor& color);
};
class DiveTemperatureItem : public AbstractProfilePolygonItem{