! Returns all range drag axes of the \a orientation provided. \see rangeZoomAxis, setRangeZoomAxes */
| 18150 | \see rangeZoomAxis, setRangeZoomAxes |
| 18151 | */ |
| 18152 | QList<QCPAxis*> QCPAxisRect::rangeDragAxes(Qt::Orientation orientation) |
| 18153 | { |
| 18154 | QList<QCPAxis*> result; |
| 18155 | if (orientation == Qt::Horizontal) |
| 18156 | { |
| 18157 | foreach (QPointer<QCPAxis> axis, mRangeDragHorzAxis) |
| 18158 | { |
| 18159 | if (!axis.isNull()) |
| 18160 | result.append(axis.data()); |
| 18161 | } |
| 18162 | } else |
| 18163 | { |
| 18164 | foreach (QPointer<QCPAxis> axis, mRangeDragVertAxis) |
| 18165 | { |
| 18166 | if (!axis.isNull()) |
| 18167 | result.append(axis.data()); |
| 18168 | } |
| 18169 | } |
| 18170 | return result; |
| 18171 | } |
| 18172 | |
| 18173 | /*! |
| 18174 | Returns all range zoom axes of the \a orientation provided. |