| 193 | {} |
| 194 | |
| 195 | void GrepOutputModel::clear() |
| 196 | { |
| 197 | QStandardItemModel::clear(); |
| 198 | // the above clear() also destroys the root item, so invalidate the pointer |
| 199 | m_rootItem = nullptr; |
| 200 | |
| 201 | m_fileCount = 0; |
| 202 | m_matchCount = 0; |
| 203 | } |
| 204 | |
| 205 | void GrepOutputModel::setRegExp(const QRegExp& re) |
| 206 | { |
no test coverage detected