mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
update: can search protocal with protocal id
This commit is contained in:
parent
3b32faa140
commit
641cd00feb
@ -894,7 +894,10 @@ void ProtocolDock::on_decoder_name_edited(const QString &value)
|
||||
|
||||
for (auto &info: _decoderInfoList){
|
||||
QString name(info->Name);
|
||||
if (value == "" || name.indexOf(value, 0, Qt::CaseInsensitive) != -1){
|
||||
QString id(info->Id);
|
||||
if (value == ""
|
||||
|| name.indexOf(value, 0, Qt::CaseInsensitive) != -1
|
||||
|| id.indexOf(value, 0, Qt::CaseInsensitive) != -1 ){
|
||||
_protocol_combobox->addItem(QString::fromUtf8(info->Name), QVariant::fromValue(info->Index));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user