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

Method removeChannel

gui/src/plottracker.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62void PlotTracker::addChannel(PlotChannel *ch) { m_trackers->insert(createTracker(ch)); }
63
64void PlotTracker::removeChannel(PlotChannel *ch)
65{
66 ChannelTracker *toRemove;
67 for(ChannelTracker *chTracker : qAsConst(*m_trackers)) {
68 if(chTracker->channel == ch) {
69 toRemove = chTracker;
70 break;
71 }
72 }
73 m_trackers->remove(toRemove);
74 delete toRemove;
75}
76
77ChannelTracker *PlotTracker::createTracker(PlotChannel *ch)
78{

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected