| 890 | } |
| 891 | |
| 892 | void ProtocolDock::OnProtocolFormatChanged(QString format, void *handle){ |
| 893 | for (auto it = _protocol_lay_items.begin(); it != _protocol_lay_items.end(); it++){ |
| 894 | if ((*it) == handle){ |
| 895 | auto lay = (*it); |
| 896 | AppConfig::Instance().SetProtocolFormat(lay->m_protocolId.toStdString(), format.toStdString()); |
| 897 | |
| 898 | if (lay->m_decoderStatus != NULL) |
| 899 | { |
| 900 | lay->m_decoderStatus->m_format = DecoderDataFormat::Parse(format.toStdString().c_str()); |
| 901 | protocol_updated(); |
| 902 | } |
| 903 | |
| 904 | break; |
| 905 | } |
| 906 | } |
| 907 | } |
| 908 | |
| 909 | |
| 910 | bool ProtocolDock::protocol_sort_callback(const DecoderInfoItem *o1, const DecoderInfoItem *o2) |
no test coverage detected