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

Method set_model

DSView/pv/dock/protocoldock.cpp:479–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479void ProtocolDock::set_model()
480{
481 pv::dialogs::ProtocolList *protocollist_dlg = new pv::dialogs::ProtocolList(this, _session);
482 protocollist_dlg->exec();
483 resize_table_view(_session->get_decoder_model());
484 _model_proxy.setSourceModel(_session->get_decoder_model());
485 search_done();
486
487 // clear mark_index of all DecoderStacks
488 const auto &decode_sigs = _session->get_decode_signals();
489
490 for(auto d : decode_sigs) {
491 d->decoder()->set_mark_index(-1);
492 }
493}
494
495void ProtocolDock::update_model()
496{

Callers

nothing calls this directly

Calls 4

get_decoder_modelMethod · 0.80
set_mark_indexMethod · 0.80
execMethod · 0.45
decoderMethod · 0.45

Tested by

no test coverage detected