summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/ruleritem.h
diff options
context:
space:
mode:
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: