! Returns the axis type that describes the opposite axis of an axis with the specified \a type. */
| 9471 | Returns the axis type that describes the opposite axis of an axis with the specified \a type. |
| 9472 | */ |
| 9473 | QCPAxis::AxisType QCPAxis::opposite(QCPAxis::AxisType type) |
| 9474 | { |
| 9475 | switch (type) |
| 9476 | { |
| 9477 | case atLeft: return atRight; |
| 9478 | case atRight: return atLeft; |
| 9479 | case atBottom: return atTop; |
| 9480 | case atTop: return atBottom; |
| 9481 | } |
| 9482 | qDebug() << Q_FUNC_INFO << "invalid axis type"; |
| 9483 | return atLeft; |
| 9484 | } |
| 9485 | |
| 9486 | /* inherits documentation from base class */ |
| 9487 | void QCPAxis::selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |