! Returns the QCPBars instance with the specified \a index in this group. If no such QCPBars exists, returns 0. \see bars(), size */
| 23276 | \see bars(), size |
| 23277 | */ |
| 23278 | QCPBars *QCPBarsGroup::bars(int index) const |
| 23279 | { |
| 23280 | if (index >= 0 && index < mBars.size()) |
| 23281 | { |
| 23282 | return mBars.at(index); |
| 23283 | } else |
| 23284 | { |
| 23285 | qDebug() << Q_FUNC_INFO << "index out of bounds:" << index; |
| 23286 | return 0; |
| 23287 | } |
| 23288 | } |
| 23289 | |
| 23290 | /*! |
| 23291 | Removes all QCPBars plottables from this group. |