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