! Adds a new axis with \ref addAxis to each axis rect side specified in \a types. This may be an or -combination of QCPAxis::AxisType, so axes can be added to multiple sides at once. Returns a list of the added axes. \see addAxis, setupFullAxesBox */
| 17012 | \see addAxis, setupFullAxesBox |
| 17013 | */ |
| 17014 | QList<QCPAxis*> QCPAxisRect::addAxes(QCPAxis::AxisTypes types) |
| 17015 | { |
| 17016 | QList<QCPAxis*> result; |
| 17017 | if (types.testFlag(QCPAxis::atLeft)) |
| 17018 | result << addAxis(QCPAxis::atLeft); |
| 17019 | if (types.testFlag(QCPAxis::atRight)) |
| 17020 | result << addAxis(QCPAxis::atRight); |
| 17021 | if (types.testFlag(QCPAxis::atTop)) |
| 17022 | result << addAxis(QCPAxis::atTop); |
| 17023 | if (types.testFlag(QCPAxis::atBottom)) |
| 17024 | result << addAxis(QCPAxis::atBottom); |
| 17025 | return result; |
| 17026 | } |
| 17027 | |
| 17028 | /*! |
| 17029 | Removes the specified \a axis from the axis rect and deletes it. |
nothing calls this directly
no outgoing calls
no test coverage detected