MCPcopy Create free account
hub / github.com/benapetr/TuxManager / syncAllProcessColumnVisibility

Method syncAllProcessColumnVisibility

src/processeswidget.cpp:529–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529void 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
546bool ProcessesWidget::anyIOMetricsColumnVisible() const
547{

Callers 1

setupTableMethod · 0.95

Calls 1

Tested by

no test coverage detected