! 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 */
| 8695 | \see graphs, items |
| 8696 | */ |
| 8697 | QList<QCPAbstractPlottable*> QCPAxis::plottables() const |
| 8698 | { |
| 8699 | QList<QCPAbstractPlottable*> result; |
| 8700 | if (!mParentPlot) return result; |
| 8701 | |
| 8702 | for (int i=0; i<mParentPlot->mPlottables.size(); ++i) |
| 8703 | { |
| 8704 | if (mParentPlot->mPlottables.at(i)->keyAxis() == this ||mParentPlot->mPlottables.at(i)->valueAxis() == this) |
| 8705 | result.append(mParentPlot->mPlottables.at(i)); |
| 8706 | } |
| 8707 | return result; |
| 8708 | } |
| 8709 | |
| 8710 | /*! |
| 8711 | Returns a list of all the graphs that have this axis as key or value axis. |
no test coverage detected