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

Method QCPLayer

qcustomplot/qcustomplot.cpp:1042–1052  ·  view source on GitHub ↗

! Creates a new QCPLayer instance. Normally you shouldn't directly instantiate layers, use \ref QCustomPlot::addLayer instead. \warning It is not checked that \a layerName is actually a unique layer name in \a parentPlot. This check is only performed by \ref QCustomPlot::addLayer. */

Source from the content-addressed store, hash-verified

1040 This check is only performed by \ref QCustomPlot::addLayer.
1041*/
1042QCPLayer::QCPLayer(QCustomPlot *parentPlot, const QString &layerName) :
1043 QObject(parentPlot),
1044 mParentPlot(parentPlot),
1045 mName(layerName),
1046 mIndex(-1), // will be set to a proper value by the QCustomPlot layer creation function
1047 mVisible(true),
1048 mMode(lmLogical)
1049{
1050 // Note: no need to make sure layerName is unique, because layer
1051 // management is done with QCustomPlot functions.
1052}
1053
1054QCPLayer::~QCPLayer()
1055{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected