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

Method removeTask

src/plugins/reversedebug/taskmodel.cpp:216–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void TaskModel::removeTask(const Task &task)
217{
218 int index = allTasks.indexOf(task);
219 if (index >= 0) {
220 const Task &t = allTasks.at(index);
221
222 beginRemoveRows(QModelIndex(), index, index);
223 categories[task.category].removeTask(t);
224 categories[Core::Id()].removeTask(t);
225 allTasks.removeAt(index);
226 endRemoveRows();
227 }
228}
229
230void TaskModel::clearTasks(const QString &categoryId)
231{

Callers 1

clearTasksMethod · 0.45

Calls 4

IdFunction · 0.85
atMethod · 0.80
QModelIndexClass · 0.70
indexOfMethod · 0.45

Tested by

no test coverage detected