summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-16 12:32:45 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-17 06:16:47 +0700
commit9cb5ea45d886c15b26b196bc292b7a4bbf359b20 (patch)
tree6b04a501325e065fad9364eb0be86ed7533f0874 /qt-ui/profile/profilewidget2.h
parent793879b6fab658c19bce92bebe0e193a900a2cc5 (diff)
downloadsubsurface-9cb5ea45d886c15b26b196bc292b7a4bbf359b20.tar.gz
Started the code for a grid that knows how to handle itself.
The code for this item is a bit too big to be just the grid of the dives and I know that, don't bully me. :) The main idea of this grid is that it knows when it should be updated. this is a bit different than the old code where all the painting happened on the same method. This is bad because it's more code, but it's better because if I break the grid, only the grid will be broken, and it's easyer to spot the breakage. in the old code if I did the wrong thing with the graphics context, the whole graph gots messed out. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r--qt-ui/profile/profilewidget2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index eaad66f73..bea433fef 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -23,6 +23,7 @@ struct DiveProfileItem;
struct TimeAxis;
struct dive;
struct QStateMachine;
+struct DiveCartesianPlane;
class ProfileWidget2 : public QGraphicsView {
Q_OBJECT
@@ -62,6 +63,7 @@ private:
DiveRectItem *depthController;
DiveRectItem *timeController;
DiveProfileItem *diveProfileItem;
+ DiveCartesianPlane *cartesianPlane;
};
#endif \ No newline at end of file