| 516 | } |
| 517 | |
| 518 | void ProcessesWidget::syncProcessColumnVisibility(int column, bool hidden) |
| 519 | { |
| 520 | if (column < 0 || column >= OS::ProcessModel::ColCount) |
| 521 | return; |
| 522 | |
| 523 | if (QHeaderView *tableHeader = this->ui && this->ui->tableView ? this->ui->tableView->horizontalHeader() : nullptr) |
| 524 | tableHeader->setSectionHidden(column, hidden); |
| 525 | if (this->m_treeView) |
| 526 | this->m_treeView->setColumnHidden(column, hidden); |
| 527 | } |
| 528 | |
| 529 | void ProcessesWidget::syncAllProcessColumnVisibility() |
| 530 | { |
no outgoing calls
no test coverage detected