| 527 | } |
| 528 | |
| 529 | void ProcessesWidget::syncAllProcessColumnVisibility() |
| 530 | { |
| 531 | if (!this->ui || !this->ui->tableView || !this->m_treeView) |
| 532 | return; |
| 533 | |
| 534 | QHeaderView *tableHeader = this->ui->tableView->horizontalHeader(); |
| 535 | QHeaderView *treeHeader = this->m_treeView->header(); |
| 536 | if (!tableHeader || !treeHeader) |
| 537 | return; |
| 538 | |
| 539 | for (int col = 0; col < OS::ProcessModel::ColCount; ++col) |
| 540 | { |
| 541 | const bool visible = !tableHeader->isSectionHidden(col) || !treeHeader->isSectionHidden(col); |
| 542 | this->syncProcessColumnVisibility(col, !visible); |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | bool ProcessesWidget::anyIOMetricsColumnVisible() const |
| 547 | { |
no test coverage detected