summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-21 13:27:08 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-21 09:39:09 -0800
commit0a4e21a16813592031baf8ca90bc52418aa8965e (patch)
tree1d9d255b45de6bbe048e911fdca2fcb59d7982b2 /qt-ui/profile/diveprofileitem.h
parentcaba6500d63e6081565aebd9e872e48b049e5d03 (diff)
downloadsubsurface-0a4e21a16813592031baf8ca90bc52418aa8965e.tar.gz
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>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r--qt-ui/profile/diveprofileitem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h
index 89c18ff70..b9be3edf4 100644
--- a/qt-ui/profile/diveprofileitem.h
+++ b/qt-ui/profile/diveprofileitem.h
@@ -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{