MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / get_pattern

Method get_pattern

DSView/pv/dialogs/search.cpp:123–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123std::map<uint16_t, QString> Search::get_pattern()
124{
125 std::map<uint16_t, QString> pattern;
126
127 int index = 0;
128 for(auto s :_session->get_signals()) {
129 if (s->signal_type() == SR_CHANNEL_LOGIC) {
130 view::LogicSignal *logicSig = (view::LogicSignal*)s;
131 pattern[logicSig->get_index()] = _search_lineEdit_vec[index]->text();
132 index++;
133 }
134 }
135
136 return pattern;
137}
138
139} // namespace dialogs
140} // namespace pv

Callers 1

on_setMethod · 0.80

Calls 2

signal_typeMethod · 0.80
get_indexMethod · 0.45

Tested by

no test coverage detected