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

Method syncProcessColumnVisibility

src/processeswidget.cpp:518–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518void 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
529void ProcessesWidget::syncAllProcessColumnVisibility()
530{

Callers 2

showHeaderContextMenuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected