@@ -385,12 +385,22 @@ void PlotManager::_addCurve(QwtPlotCurve
curve->attach(plot);
plot->replot();
}
void PlotManager::removeCurves(unsigned number)
{
if (_stream != nullptr) // not displaying snapshot
if (! isMulti)
QVector<const StreamChannel*> dispChannels;
dispChannels = _stream->allChannels();
plotWidgets[0]->setDispChannels(dispChannels);
for (unsigned i = 0; i < number; i++)
if (!curves.isEmpty())
delete curves.takeLast();
if (isMulti) // delete corresponding widget as well
Status change: