diff --git a/src/linechart/linechartitem.cpp b/src/linechart/linechartitem.cpp index fbe5ef3..2212b29 100644 --- a/src/linechart/linechartitem.cpp +++ b/src/linechart/linechartitem.cpp @@ -36,7 +36,7 @@ void LineChartItem::addPoints(const QVector& points) const QPointF& point =m_data[i]; QGraphicsRectItem* item = new QGraphicsRectItem(0,0,3,3,this); item->setPos(point.x()-1,point.y()-1);; - if(!m_clipRect.contains(point) || !m_series->isPointsVisible()) item->setVisible(false); + if(!m_clipRect.contains(point) || !m_series->pointsVisible()) item->setVisible(false); m_points << item; } } @@ -47,7 +47,7 @@ void LineChartItem::addPoint(const QPointF& point) QGraphicsRectItem* item = new QGraphicsRectItem(0,0,3,3,this); m_clipRect.contains(point); item->setPos(point.x()-1,point.y()-1); - if(!m_clipRect.contains(point) || !m_series->isPointsVisible()) item->setVisible(false); + if(!m_clipRect.contains(point) || !m_series->pointsVisible()) item->setVisible(false); m_points << item; } diff --git a/src/linechart/qlineseries.cpp b/src/linechart/qlineseries.cpp index 9cc9c59..9c7969f 100644 --- a/src/linechart/qlineseries.cpp +++ b/src/linechart/qlineseries.cpp @@ -40,7 +40,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! - \fn bool QLineSeries::isPointsVisible() const + \fn bool QLineSeries::pointsVisible() const \brief Returns if the points are drawn for this series. \sa setPointsVisible() */ diff --git a/src/linechart/qlineseries.h b/src/linechart/qlineseries.h index d32f619..14acba7 100644 --- a/src/linechart/qlineseries.h +++ b/src/linechart/qlineseries.h @@ -30,7 +30,7 @@ public: // from QChartSeries QPen pen() const { return m_pen;} void setPointsVisible(bool visible); - bool isPointsVisible() const {return m_pointsVisible;} + bool pointsVisible() const {return m_pointsVisible;} int count() const; qreal x(int pos) const;