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

Method search_done

DSView/pv/dock/protocoldock.cpp:802–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802void 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
814void ProtocolDock::search_changed()
815{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
rowCountMethod · 0.80

Tested by

no test coverage detected