@@ -213,8 +213,9 QList<QBarSet*> QBarSeries::barSets() const | |||||
213 | \fn bool QBarSeries::setModel(QAbstractItemModel *model) |
|
213 | \fn bool QBarSeries::setModel(QAbstractItemModel *model) | |
214 | Sets the \a model to be used as a data source |
|
214 | Sets the \a model to be used as a data source | |
215 | */ |
|
215 | */ | |
216 |
void QBarSeries::setModel(QAbstractItemModel |
|
216 | void QBarSeries::setModel(QAbstractItemModel *model) | |
217 | { |
|
217 | { | |
|
218 | Q_UNUSED(model); | |||
218 | // Q_D(QBarSeries); |
|
219 | // Q_D(QBarSeries); | |
219 | // d->setModel(model); |
|
220 | // d->setModel(model); | |
220 | } |
|
221 | } |
@@ -169,8 +169,9 void QBarSet::replace(const int index, const qreal value) | |||||
169 | */ |
|
169 | */ | |
170 | QPointF QBarSet::at(const int index) const |
|
170 | QPointF QBarSet::at(const int index) const | |
171 | { |
|
171 | { | |
172 | if (index < 0 || index >= d_ptr->m_values.count()) |
|
172 | if (index < 0 || index >= d_ptr->m_values.count()) { | |
173 | return 0.0; |
|
173 | return QPointF(index, 0.0); | |
|
174 | } | |||
174 |
|
175 | |||
175 | return d_ptr->m_values.at(index); |
|
176 | return d_ptr->m_values.at(index); | |
176 | } |
|
177 | } |
General Comments 0
You need to be logged in to leave comments.
Login now