MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / opposite

Method opposite

qcustomplot/qcustomplot.cpp:8775–8785  ·  view source on GitHub ↗

! Returns the axis type that describes the opposite axis of an axis with the specified \a type. */

Source from the content-addressed store, hash-verified

8773 Returns the axis type that describes the opposite axis of an axis with the specified \a type.
8774*/
8775QCPAxis::AxisType QCPAxis::opposite(QCPAxis::AxisType type)
8776{
8777 switch (type)
8778 {
8779 case atLeft: return atRight; break;
8780 case atRight: return atLeft; break;
8781 case atBottom: return atTop; break;
8782 case atTop: return atBottom; break;
8783 default: qDebug() << Q_FUNC_INFO << "invalid axis type"; return atLeft; break;
8784 }
8785}
8786
8787/* inherits documentation from base class */
8788void QCPAxis::selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected