summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divecartesianaxis.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-02-15 21:46:14 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-15 17:16:02 -0800
commitfc55b2abfea6079c730688566bd2452e903cec30 (patch)
treefa2405efdfb1b768c5ad23189c9124eecdec76e2 /qt-ui/profile/divecartesianaxis.h
parent87d528992052ccc6204a25642b503a15ab45f9f9 (diff)
downloadsubsurface-fc55b2abfea6079c730688566bd2452e903cec30.tar.gz
Remove the class 'CartesianPlane'
This class was pratically a re-do of the axis, I'll do the axis to plot the lines when it feels like it. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.h')
-rw-r--r--qt-ui/profile/divecartesianaxis.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h
index 7c528b4a4..58468f209 100644
--- a/qt-ui/profile/divecartesianaxis.h
+++ b/qt-ui/profile/divecartesianaxis.h
@@ -97,27 +97,4 @@ private:
DivePlotDataModel *model;
};
-// This is a try. Maybe the CartesianPlane should have the X and Y
-// axis and handle things internally?
-class DiveCartesianPlane :public QObject, public QGraphicsRectItem{
- Q_OBJECT
- Q_PROPERTY(QLineF verticalLine READ verticalLine WRITE setVerticalLine)
- Q_PROPERTY(QLineF horizontalLine READ horizontalLine WRITE setHorizontalLine)
-public:
- void setLeftAxis(DiveCartesianAxis *axis);
- void setBottomAxis(DiveCartesianAxis *axis);
- void setHorizontalLine(QLineF line);
- void setVerticalLine(QLineF line);
- QLineF horizontalLine() const;
- QLineF verticalLine() const;
-public slots:
- void setup();
-private:
- DiveCartesianAxis *leftAxis;
- DiveCartesianAxis *bottomAxis;
- QList<DiveLineItem*> verticalLines;
- QList<DiveLineItem*> horizontalLines;
- qreal verticalSize;
- qreal horizontalSize;
-};
#endif // DIVECARTESIANAXIS_H