MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / removeChannel

Method removeChannel

gui/src/plotnavigator.cpp:345–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void PlotNavigator::removeChannel(PlotChannel *channel)
346{
347 // remove axes if there aren't other channels using them
348 QwtAxisId xAxis = channel->xAxis()->axisId();
349 QwtAxisId yAxis = channel->yAxis()->axisId();
350 removeNavigators(xAxis, channel);
351 removeNavigators(yAxis, channel);
352 m_channels->remove(channel);
353
354 if(m_channels->empty()) {
355 m_visibleZoomer->setEnabled(false);
356 }
357}
358
359bool PlotNavigator::isZoomed()
360{

Callers

nothing calls this directly

Calls 5

axisIdMethod · 0.80
xAxisMethod · 0.45
yAxisMethod · 0.45
removeMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected