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

Method OnItemClick

DSView/pv/dock/protocoldock.cpp:1022–1033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020 }
1021
1022 void ProtocolDock::OnItemClick(void *sender, void *data_handle)
1023 {
1024 (void)sender;
1025
1026 if (data_handle != NULL){
1027 DecoderInfoItem *info = (DecoderInfoItem*)data_handle;
1028 srd_decoder *dec = (srd_decoder *)(info->_data_handle);
1029 this->_pro_keyword_edit->SetInputText(QString(dec->name));
1030 _selected_protocol_id = QString(dec->id);
1031 this->on_add_protocol();
1032 }
1033 }
1034
1035 void ProtocolDock::reset_view()
1036 {

Callers

nothing calls this directly

Calls 2

on_add_protocolMethod · 0.95
SetInputTextMethod · 0.80

Tested by

no test coverage detected