! Returns the range drag axis of the \a orientation provided. If multiple axes were set, returns the first one (use \ref rangeDragAxes to retrieve a list with all set axes). \see setRangeDragAxes */
| 18123 | \see setRangeDragAxes |
| 18124 | */ |
| 18125 | QCPAxis *QCPAxisRect::rangeDragAxis(Qt::Orientation orientation) |
| 18126 | { |
| 18127 | if (orientation == Qt::Horizontal) |
| 18128 | return mRangeDragHorzAxis.isEmpty() ? nullptr : mRangeDragHorzAxis.first().data(); |
| 18129 | else |
| 18130 | return mRangeDragVertAxis.isEmpty() ? nullptr : mRangeDragVertAxis.first().data(); |
| 18131 | } |
| 18132 | |
| 18133 | /*! |
| 18134 | Returns the range zoom axis of the \a orientation provided. If multiple axes were set, returns |