! \overload Sets the axes whose range will be dragged when \ref setRangeDrag enables mouse range dragging on the QCustomPlot widget. Pass 0 if no axis shall be dragged in the respective orientation. Use the overload taking a list of axes, if multiple axes (more than one per orientation) shall react to dragging interactions. \see setRangeZoomAxes */
| 17525 | \see setRangeZoomAxes |
| 17526 | */ |
| 17527 | void QCPAxisRect::setRangeDragAxes(QCPAxis *horizontal, QCPAxis *vertical) |
| 17528 | { |
| 17529 | QList<QCPAxis*> horz, vert; |
| 17530 | if (horizontal) |
| 17531 | horz.append(horizontal); |
| 17532 | if (vertical) |
| 17533 | vert.append(vertical); |
| 17534 | setRangeDragAxes(horz, vert); |
| 17535 | } |
| 17536 | |
| 17537 | /*! \overload |
| 17538 |