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

Method addAxes

qcustomplot/qcustomplot.cpp:17014–17026  ·  view source on GitHub ↗

! Adds a new axis with \ref addAxis to each axis rect side specified in \a types. This may be an or -combination of QCPAxis::AxisType, so axes can be added to multiple sides at once. Returns a list of the added axes. \see addAxis, setupFullAxesBox */

Source from the content-addressed store, hash-verified

17012 \see addAxis, setupFullAxesBox
17013*/
17014QList<QCPAxis*> QCPAxisRect::addAxes(QCPAxis::AxisTypes types)
17015{
17016 QList<QCPAxis*> result;
17017 if (types.testFlag(QCPAxis::atLeft))
17018 result << addAxis(QCPAxis::atLeft);
17019 if (types.testFlag(QCPAxis::atRight))
17020 result << addAxis(QCPAxis::atRight);
17021 if (types.testFlag(QCPAxis::atTop))
17022 result << addAxis(QCPAxis::atTop);
17023 if (types.testFlag(QCPAxis::atBottom))
17024 result << addAxis(QCPAxis::atBottom);
17025 return result;
17026}
17027
17028/*!
17029 Removes the specified \a axis from the axis rect and deletes it.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected