summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/tankitem.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-14 21:40:47 -0600
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-14 22:39:47 -0600
commit87ca15c5c35f32049f66f3cb2da1dc723bc5c1a9 (patch)
tree424a3f8e78d5d4a8e0dff7538f0f660b3028b026 /qt-ui/profile/tankitem.h
parentfa3c18d83b3f8d8ec9ccb692bf385b07cde30412 (diff)
downloadsubsurface-87ca15c5c35f32049f66f3cb2da1dc723bc5c1a9.tar.gz
Add gas text to tank bars
Also restructures the code a bit to make it a little more sane and changes the colors slightly. With these changes I think we can claim that this Fixes #557 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/tankitem.h')
-rw-r--r--qt-ui/profile/tankitem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/profile/tankitem.h b/qt-ui/profile/tankitem.h
index 2dc7dfaa2..615a7017d 100644
--- a/qt-ui/profile/tankitem.h
+++ b/qt-ui/profile/tankitem.h
@@ -3,6 +3,7 @@
#include <QGraphicsItem>
#include <QModelIndex>
+#include <QBrush>
#include "divelineitem.h"
#include "divecartesianaxis.h"
#include "dive.h"
@@ -23,11 +24,14 @@ public slots:
virtual void modelDataChanged(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex());
private:
+ void createBar(qreal x, qreal w, struct gasmix *gas);
DivePlotDataModel *dataModel;
DiveCartesianAxis *hAxis;
int hDataColumn;
struct dive *dive;
struct plot_info *pInfo;
+ qreal yPos, height;
+ QBrush air, nitrox, trimix;
QList<QGraphicsRectItem *> rects;
};