diff --git a/src/axis/chartaxis_p.h b/src/axis/chartaxis_p.h index a58ef58..ee9cffe 100644 --- a/src/axis/chartaxis_p.h +++ b/src/axis/chartaxis_p.h @@ -124,7 +124,7 @@ protected: QList labelItems() { return m_labels->childItems();}; QList shadeItems() { return m_shades->childItems();}; QList arrowItems() { return m_arrow->childItems();}; - QGraphicsSimpleTextItem* titleItem() const { return m_title;} + QGraphicsSimpleTextItem* titleItem() const { return m_title.data();} QFont font() const { return m_font; } qreal min() const {return m_min; } @@ -152,7 +152,7 @@ private: QScopedPointer m_shades; QScopedPointer m_labels; QScopedPointer m_arrow; - QGraphicsSimpleTextItem *m_title; + QScopedPointer m_title; QVector m_layoutVector; qreal m_min; qreal m_max;