! Returns the plottable with \a index. If the index is invalid, returns \c nullptr. There is an overloaded version of this function with no parameter which returns the last added plottable, see QCustomPlot::plottable() \see plottableCount */
| 14240 | \see plottableCount |
| 14241 | */ |
| 14242 | QCPAbstractPlottable *QCustomPlot::plottable(int index) |
| 14243 | { |
| 14244 | if (index >= 0 && index < mPlottables.size()) |
| 14245 | { |
| 14246 | return mPlottables.at(index); |
| 14247 | } else |
| 14248 | { |
| 14249 | qDebug() << Q_FUNC_INFO << "index out of bounds:" << index; |
| 14250 | return nullptr; |
| 14251 | } |
| 14252 | } |
| 14253 | |
| 14254 | /*! \overload |
| 14255 |
no test coverage detected