##// END OF EJS Templates
qxyseries doc update
Jani Honkonen -
r1336:8115fc705636
parent child
Show More
@@ -31,6 +31,18 QTCOMMERCIALCHART_BEGIN_NAMESPACE
31 31 */
32 32
33 33 /*!
34 \property QXYSeries::pointsVisible
35
36 Controls if the data points are visible and should be drawn.
37 */
38
39 /*!
40 \property QXYSeries::count
41
42 Number of points in the series.
43 */
44
45 /*!
34 46 \fn QPen QXYSeries::pen() const
35 47 \brief Returns pen used to draw points for series.
36 48 \sa setPen()
@@ -47,20 +59,22 QTCOMMERCIALCHART_BEGIN_NAMESPACE
47 59 \brief Signal is emitted when user clicks the \a point on chart.
48 60 */
49 61
50
51 62 /*!
52 \fn void QXYSeriesPrivate::pointReplaced(int index)
53 \brief \internal \a index
63 \fn void QXYSeries::pointReplaced(int index)
64 \brief Signal is emitted when user replaces a point at \a index.
65 \sa replace()
54 66 */
55 67
56 68 /*!
57 \fn void QXYSeriesPrivate::pointAdded(int index)
58 \brief \internal \a index
69 \fn void QXYSeries::pointAdded(int index)
70 \brief Signal is emitted when user adds a point at \a index.
71 \sa append(), insert()
59 72 */
60 73
61 74 /*!
62 \fn void QXYSeriesPrivate::pointRemoved(int index)
63 \brief \internal \a index
75 \fn void QXYSeries::pointRemoved(int index)
76 \brief Signal is emitted when user removes a point at \a index.
77 \sa remove()
64 78 */
65 79
66 80 /*!
@@ -117,12 +131,17 void QXYSeries::append(const QList<QPointF> &points)
117 131 }
118 132 }
119 133
120
134 /*!
135 Replaces data point \a oldX \a oldY with data point \a newX \a newY.
136 */
121 137 void QXYSeries::replace(qreal oldX,qreal oldY,qreal newX,qreal newY)
122 138 {
123 139 replace(QPointF(oldX,oldY),QPointF(newX,newY));
124 140 }
125 141
142 /*!
143 Replaces \a oldPoint with \a newPoint.
144 */
126 145 void QXYSeries::replace(const QPointF &oldPoint,const QPointF &newPoint)
127 146 {
128 147 Q_D(QXYSeries);
@@ -142,7 +161,9 void QXYSeries::remove(qreal x,qreal y)
142 161 }
143 162
144 163 /*!
145 Removes current \a point x value. Note \a point y value is ignored.
164 Removes current \a point x value.
165
166 Note: point y value is ignored.
146 167 */
147 168 void QXYSeries::remove(const QPointF &point)
148 169 {
@@ -165,6 +186,9 void QXYSeries::removeAll()
165 186 }
166 187 }
167 188
189 /*!
190 Inserts a \a point in the series at \a index position.
191 */
168 192 void QXYSeries::insert(int index, const QPointF &point)
169 193 {
170 194 Q_D(QXYSeries);
@@ -173,6 +197,9 void QXYSeries::insert(int index, const QPointF &point)
173 197 emit pointAdded(index);
174 198 }
175 199
200 /*!
201 Removes all points from the series.
202 */
176 203 void QXYSeries::clear()
177 204 {
178 205 Q_D(QXYSeries);
@@ -240,9 +267,6 QBrush QXYSeries::brush() const
240 267 }
241 268
242 269
243 /*!
244 Sets if data points are \a visible and should be drawn on line.
245 */
246 270 void QXYSeries::setPointsVisible(bool visible)
247 271 {
248 272 Q_D(QXYSeries);
@@ -252,9 +276,6 void QXYSeries::setPointsVisible(bool visible)
252 276 }
253 277 }
254 278
255 /*!
256 Returns true if drawing the data points of the series is enabled.
257 */
258 279 bool QXYSeries::pointsVisible() const
259 280 {
260 281 Q_D(const QXYSeries);
General Comments 0
You need to be logged in to leave comments. Login now