! Returns a list of all the plottables that have this axis as key or value axis. If you are only interested in plottables of type QCPGraph, see \ref graphs. \see graphs, items */
| 9394 | \see graphs, items |
| 9395 | */ |
| 9396 | QList<QCPAbstractPlottable*> QCPAxis::plottables() const |
| 9397 | { |
| 9398 | QList<QCPAbstractPlottable*> result; |
| 9399 | if (!mParentPlot) return result; |
| 9400 | |
| 9401 | foreach (QCPAbstractPlottable *plottable, mParentPlot->mPlottables) |
| 9402 | { |
| 9403 | if (plottable->keyAxis() == this || plottable->valueAxis() == this) |
| 9404 | result.append(plottable); |
| 9405 | } |
| 9406 | return result; |
| 9407 | } |
| 9408 | |
| 9409 | /*! |
| 9410 | Returns a list of all the graphs that have this axis as key or value axis. |
no test coverage detected