! 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 */
| 8684 | \see graphs, items |
| 8685 | */ |
| 8686 | QList<QCPAbstractPlottable*> QCPAxis::plottables() const |
| 8687 | { |
| 8688 | QList<QCPAbstractPlottable*> result; |
| 8689 | if (!mParentPlot) return result; |
| 8690 | |
| 8691 | for (int i=0; i<mParentPlot->mPlottables.size(); ++i) |
| 8692 | { |
| 8693 | if (mParentPlot->mPlottables.at(i)->keyAxis() == this ||mParentPlot->mPlottables.at(i)->valueAxis() == this) |
| 8694 | result.append(mParentPlot->mPlottables.at(i)); |
| 8695 | } |
| 8696 | return result; |
| 8697 | } |
| 8698 | |
| 8699 | /*! |
| 8700 | Returns a list of all the graphs that have this axis as key or value axis. |
no test coverage detected