! 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. */
| 1040 | This check is only performed by \ref QCustomPlot::addLayer. |
| 1041 | */ |
| 1042 | QCPLayer::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 | |
| 1054 | QCPLayer::~QCPLayer() |
| 1055 | { |
nothing calls this directly
no outgoing calls
no test coverage detected