| 399 | } |
| 400 | |
| 401 | void ResultsTree::clear() |
| 402 | { |
| 403 | mErrorList.clear(); |
| 404 | |
| 405 | mModel->removeRows(0, mModel->rowCount()); |
| 406 | |
| 407 | if (const ProjectFile *activeProject = ProjectFile::getActiveProject()) { |
| 408 | hideColumn(COLUMN_SINCE_DATE); |
| 409 | if (activeProject->getTags().isEmpty()) |
| 410 | hideColumn(COLUMN_TAGS); |
| 411 | else |
| 412 | showColumn(COLUMN_TAGS); |
| 413 | } else { |
| 414 | hideColumn(COLUMN_SINCE_DATE); |
| 415 | hideColumn(COLUMN_TAGS); |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | void ResultsTree::clear(const QString &filename) |
| 420 | { |