From f4b9e33f4ebb894a2b4957e22fa42d037a84f77e 2012-10-09 11:48:55 From: Michal Klocek Date: 2012-10-09 11:48:55 Subject: [PATCH] Adds ScopedPointer for axis title element --- 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;