| 586 | } |
| 587 | |
| 588 | void TaskWindow::setCategoryVisibility(const QString &categoryId, bool visible) |
| 589 | { |
| 590 | if (categoryId.isEmpty()) |
| 591 | return; |
| 592 | |
| 593 | QList<QString> categories = d->filter->filteredCategories(); |
| 594 | |
| 595 | if (visible) |
| 596 | categories.removeOne(categoryId); |
| 597 | else |
| 598 | categories.append(categoryId); |
| 599 | |
| 600 | d->filter->setFilteredCategories(categories); |
| 601 | d->timeline->setFilteredCategories(categories); |
| 602 | } |
| 603 | |
| 604 | void TaskWindow::currentChanged(const QModelIndex &index) |
| 605 | { |
nothing calls this directly
no test coverage detected