MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / rowForId

Method rowForId

src/plugins/reversedebug/taskmodel.cpp:290–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290int TaskModel::rowForId(unsigned int id)
291{
292 QList<Task>::const_iterator it = std::lower_bound(allTasks.constBegin(), allTasks.constEnd(), id, sortById);
293 if (it == allTasks.constEnd())
294 return -1;
295 return it - allTasks.constBegin();
296}
297
298} // namespace Internal
299} // namespace ReverseDebugger

Callers 2

showTaskMethod · 0.80
openTaskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected