| 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 | { |
nothing calls this directly
no test coverage detected