MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / show_protocol_select

Method show_protocol_select

DSView/pv/dock/protocoldock.cpp:1004–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002 }
1003
1004 void ProtocolDock::show_protocol_select()
1005 {
1006 SearchComboBox *panel = new SearchComboBox(this);
1007
1008 for (auto info : _decoderInfoList)
1009 {
1010 srd_decoder *dec = (srd_decoder *)(info->_data_handle);
1011 panel->AddDataItem(QString(dec->id), QString(dec->name), info);
1012 }
1013
1014 QFont font = this->font();
1015 font.setPointSizeF(AppConfig::Instance().appOptions.fontSize);
1016 ui::set_form_font(panel, font);
1017
1018 panel->SetItemClickHandle(this);
1019 panel->ShowDlg(_pro_keyword_edit);
1020 }
1021
1022 void ProtocolDock::OnItemClick(void *sender, void *data_handle)
1023 {

Callers

nothing calls this directly

Calls 4

set_form_fontFunction · 0.85
AddDataItemMethod · 0.80
SetItemClickHandleMethod · 0.80
ShowDlgMethod · 0.45

Tested by

no test coverage detected