summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveeventitem.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-16 16:21:23 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-17 06:18:00 +0700
commit254beef5d4c0ead123556ffbc5e37dd2cc81366e (patch)
treeafd1a1babb9d3cbd727993c9c21d5508e4c61461 /qt-ui/profile/diveeventitem.h
parent1f8078828663f6bfff768cbc2fb36e6643eb3d0e (diff)
downloadsubsurface-254beef5d4c0ead123556ffbc5e37dd2cc81366e.tar.gz
Transform the DiveProfileItem to an Abstract Generalization
The DiveProfileItem contained much of the complexity and algorithms for almost all line-based items on the canvas, so I transformed that to a general abstraction and implemented a new DiveProfileItem that uses it. this should reduce a bit of code since the implementation of the PP Graphs, Temperature Cylinder Pressure and maybe a few others will only need to reimplement the paint() and the modelDataChanged() methods. The rest is ready. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveeventitem.h')
-rw-r--r--qt-ui/profile/diveeventitem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profile/diveeventitem.h b/qt-ui/profile/diveeventitem.h
index 896036e8d..d729daa9f 100644
--- a/qt-ui/profile/diveeventitem.h
+++ b/qt-ui/profile/diveeventitem.h
@@ -16,10 +16,10 @@ public:
void setVerticalAxis(DiveCartesianAxis *axis);
void setHorizontalAxis(DiveCartesianAxis *axis);
void setModel(DivePlotDataModel *model);
- void recalculate();
private:
void setupToolTipString();
- void setupPixmap();
+ void recalculatePos();
+ void setupPixmap();
DiveCartesianAxis *vAxis;
DiveCartesianAxis *hAxis;
DivePlotDataModel *dataModel;