! Returns all axes on the axis rect sides specified with \a types. \a types may be a single \ref QCPAxis::AxisType or an or -combination, to get the axes of multiple sides. \see axis */
| 16868 | \see axis |
| 16869 | */ |
| 16870 | QList<QCPAxis*> QCPAxisRect::axes(QCPAxis::AxisTypes types) const |
| 16871 | { |
| 16872 | QList<QCPAxis*> result; |
| 16873 | if (types.testFlag(QCPAxis::atLeft)) |
| 16874 | result << mAxes.value(QCPAxis::atLeft); |
| 16875 | if (types.testFlag(QCPAxis::atRight)) |
| 16876 | result << mAxes.value(QCPAxis::atRight); |
| 16877 | if (types.testFlag(QCPAxis::atTop)) |
| 16878 | result << mAxes.value(QCPAxis::atTop); |
| 16879 | if (types.testFlag(QCPAxis::atBottom)) |
| 16880 | result << mAxes.value(QCPAxis::atBottom); |
| 16881 | return result; |
| 16882 | } |
| 16883 | |
| 16884 | /*! \overload |
| 16885 |
no test coverage detected