From a21a3c098ff7f87535c129f40d8f13a58a25821b 2012-08-28 13:40:05 From: Marek Rosa Date: 2012-08-28 13:40:05 Subject: [PATCH] Small code comments fixes --- diff --git a/src/axis/categoryaxis/qcategoryaxis.h b/src/axis/categoryaxis/qcategoryaxis.h index 4b9ea82..d676666 100644 --- a/src/axis/categoryaxis/qcategoryaxis.h +++ b/src/axis/categoryaxis/qcategoryaxis.h @@ -50,7 +50,6 @@ public: qreal startValue(const QString& categoryLabel = QString()) const; void setStartValue(qreal min); -// qreal startValue(const QString& categoryLabel) const; qreal endValue(const QString& categoryLabel) const; QStringList categoriesLabels(); diff --git a/src/xychart/qxymodelmapper.cpp b/src/xychart/qxymodelmapper.cpp index 70922ae..e1624c6 100644 --- a/src/xychart/qxymodelmapper.cpp +++ b/src/xychart/qxymodelmapper.cpp @@ -428,7 +428,7 @@ void QXYModelMapperPrivate::insertData(int start, int end) } } - // remove excess of slices (abouve m_count) + // remove excess of points (above m_count) if (m_count != -1 && m_series->points().size() > m_count) for (int i = m_series->points().size() - 1; i >= m_count; i--) { m_series->remove(m_series->points().at(i)); @@ -484,7 +484,7 @@ void QXYModelMapperPrivate::initializeXYFromModel() // clear current content m_series->clear(); - // create the initial slices set + // create the initial points set int pointPos = 0; QModelIndex xIndex = xModelIndex(pointPos); QModelIndex yIndex = yModelIndex(pointPos);