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

Method selectChannel

gui/src/plotwidget.cpp:355–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355void PlotWidget::selectChannel(PlotChannel *ch)
356{
357 hideAxisLabels();
358 m_selectedChannel = ch;
359 showAxisLabels();
360
361 if(m_selectedChannel != nullptr) {
362 if(m_selectedChannel->isEnabled()) {
363 m_selectedChannel->raise();
364 }
365 }
366 // return;
367
368 Q_EMIT channelSelected(m_selectedChannel);
369}
370
371void PlotWidget::setUnitsVisible(bool visible)
372{

Callers 3

addChannelMethod · 0.45
GRTimePlotAddonMethod · 0.45
onChannelRemovedMethod · 0.45

Calls 2

isEnabledMethod · 0.45
raiseMethod · 0.45

Tested by

no test coverage detected