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

Method SetProtocolFormat

DSView/pv/dock/protocolitemlayer.cpp:145–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145 void ProtocolItemLayer::SetProtocolFormat(const char *format)
146 {
147 assert(format);
148
149 m_bSetting = true;
150 int dex = DecoderDataFormat::Parse(format);
151 if (dex < (int)_format_combox->count()){
152 _format_combox->setCurrentIndex(dex);
153 }
154 m_bSetting = false;
155 }
156
157 void ProtocolItemLayer::enable_format(bool flag)
158 {

Callers 2

add_protocol_by_idMethod · 0.45

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected