diff options
Diffstat (limited to 'qt-ui/profile/divetooltipitem.h')
-rw-r--r-- | qt-ui/profile/divetooltipitem.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/profile/divetooltipitem.h b/qt-ui/profile/divetooltipitem.h index ca5bc8905..7ac9d8652 100644 --- a/qt-ui/profile/divetooltipitem.h +++ b/qt-ui/profile/divetooltipitem.h @@ -1,7 +1,7 @@ #ifndef DIVETOOLTIPITEM_H #define DIVETOOLTIPITEM_H -#include <QGraphicsPathItem> +#include <QGraphicsRectItem> #include <QVector> #include <QPair> #include <QRectF> @@ -17,10 +17,10 @@ struct graphics_context; /* To use a tooltip, simply ->setToolTip on the QGraphicsItem that you want * or, if it's a "global" tooltip, set it on the mouseMoveEvent of the ProfileGraphicsView. */ -class ToolTipItem : public QObject, public QGraphicsPathItem { +class ToolTipItem : public QObject, public QGraphicsRectItem { Q_OBJECT void updateTitlePosition(); - Q_PROPERTY(QRectF rect READ boundingRect WRITE setRect) + Q_PROPERTY(QRectF rect READ rect WRITE setRect) public: enum Status { |