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

Method clearTasks

src/plugins/builder/tasks/taskmodel.cpp:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void TaskModel::clearTasks()
104{
105 if (tasks.isEmpty())
106 return;
107
108 beginRemoveRows(QModelIndex(), 0, tasks.count() -1);
109 tasks.clear();
110 endRemoveRows();
111}
112
113int TaskModel::taskCount()
114{

Callers 1

clearContentsMethod · 0.45

Calls 4

QModelIndexClass · 0.50
isEmptyMethod · 0.45
countMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected