##// END OF EJS Templates
barset append list changed to take reference
sauimone -
r1500:c68a69b7bb5f
parent child
Show More
@@ -265,7 +265,7 void QBarSet::append(const QPointF value)
265 Appends a list of \a values to set. Works like append with single point.
265 Appends a list of \a values to set. Works like append with single point.
266 \sa append()
266 \sa append()
267 */
267 */
268 void QBarSet::append(const QList<QPointF> values)
268 void QBarSet::append(const QList<QPointF> &values)
269 {
269 {
270 int index = d_ptr->m_values.count();
270 int index = d_ptr->m_values.count();
271 d_ptr->append(values);
271 d_ptr->append(values);
@@ -287,7 +287,7 void QBarSet::append(const qreal value)
287 are converted to QPointF, where x coordinate is the index of point and y coordinate is the value.
287 are converted to QPointF, where x coordinate is the index of point and y coordinate is the value.
288 \sa append()
288 \sa append()
289 */
289 */
290 void QBarSet::append(const QList<qreal> values)
290 void QBarSet::append(const QList<qreal> &values)
291 {
291 {
292 int index = d_ptr->m_values.count();
292 int index = d_ptr->m_values.count();
293 d_ptr->append(values);
293 d_ptr->append(values);
@@ -49,9 +49,9 public:
49 QString label() const;
49 QString label() const;
50
50
51 void append(const QPointF value);
51 void append(const QPointF value);
52 void append(const QList<QPointF> values);
52 void append(const QList<QPointF> &values);
53 void append(const qreal value);
53 void append(const qreal value);
54 void append(const QList<qreal> values);
54 void append(const QList<qreal> &values);
55
55
56 QBarSet& operator << (const qreal &value);
56 QBarSet& operator << (const qreal &value);
57 QBarSet& operator << (const QPointF &value);
57 QBarSet& operator << (const QPointF &value);
General Comments 0
You need to be logged in to leave comments. Login now