summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/ruleritem.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-03-09 10:59:31 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-09 08:50:54 -0700
commit24c5b2e3c1bda349c208a94cf8c17fa17af971db (patch)
treec54f66a6d36d3d43d74b84e9119fc4c507a36b7e /qt-ui/profile/ruleritem.h
parentb6bbfdcc5f1d90d00ccc0244e5e9792558d25abd (diff)
downloadsubsurface-24c5b2e3c1bda349c208a94cf8c17fa17af971db.tar.gz
Code Cleanup ( that fix 2 bugs )
This code cleanup fixes the two issues that I raised on my last e-mail. hurrah. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/ruleritem.h')
-rw-r--r--qt-ui/profile/ruleritem.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/qt-ui/profile/ruleritem.h b/qt-ui/profile/ruleritem.h
index 61eda1ed3..6ab86f44b 100644
--- a/qt-ui/profile/ruleritem.h
+++ b/qt-ui/profile/ruleritem.h
@@ -31,8 +31,7 @@ private:
DiveCartesianAxis *depthAxis;
};
-class RulerItem2 : public QGraphicsObject {
- Q_OBJECT
+class RulerItem2 : public QGraphicsLineItem {
public:
explicit RulerItem2();
void recalculate();
@@ -40,9 +39,6 @@ public:
void setPlotInfo(struct plot_info pInfo);
RulerNodeItem2 *sourceNode() const;
RulerNodeItem2 *destNode() const;
- void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
- QRectF boundingRect() const;
- QPainterPath shape() const;
void setAxis(DiveCartesianAxis *time, DiveCartesianAxis *depth);
private: