MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / set_trace_name

Method set_trace_name

DSView/pv/sigsession.cpp:2458–2473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2456 }
2457
2458 void SigSession::set_trace_name(view::Trace *trace, QString name)
2459 {
2460 assert(trace);
2461
2462 trace->set_name(name);
2463
2464 int traceType = trace->get_type();
2465
2466 if (traceType == SR_CHANNEL_LOGIC || traceType == SR_CHANNEL_ANALOG)
2467 {
2468 _device_agent.set_channel_name(trace->get_index(), name.toUtf8());
2469 }
2470 else if (traceType == SR_CHANNEL_DECODER && _decoder_pannel != NULL){
2471 _decoder_pannel->update_deocder_item_name(trace, name.toUtf8().data());
2472 }
2473 }
2474
2475 void SigSession::set_decoder_row_label(int index, QString label)
2476 {

Callers 1

Calls 6

set_channel_nameMethod · 0.80
set_nameMethod · 0.45
get_typeMethod · 0.45
get_indexMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected