| 800 | } |
| 801 | |
| 802 | void ProtocolDock::search_done() |
| 803 | { |
| 804 | QString str = _ann_search_edit->text().trimmed(); |
| 805 | QRegularExpression rx("(-)"); |
| 806 | _str_list = str.split(rx); |
| 807 | _model_proxy.setFilterFixedString(_str_list.first()); |
| 808 | if (_str_list.size() > 1) |
| 809 | _matchs_label->setText("..."); |
| 810 | else |
| 811 | _matchs_label->setText(QString::number(_model_proxy.rowCount())); |
| 812 | } |
| 813 | |
| 814 | void ProtocolDock::search_changed() |
| 815 | { |