MCPcopy Create free account
hub / github.com/KDE/labplot / showAllColumns

Method showAllColumns

src/frontend/ProjectExplorer.cpp:637–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637void ProjectExplorer::showAllColumns() {
638 for (int i = 0; i < m_treeView->model()->columnCount(); i++) {
639 m_treeView->showColumn(i);
640 m_treeView->header()->resizeSection(0, 0);
641 m_treeView->header()->resizeSections(QHeaderView::ResizeToContents);
642 }
643 showAllColumnsAction->setEnabled(false);
644
645 for (auto* action : std::as_const(list_showColumnActions)) {
646 action->setEnabled(true);
647 action->setChecked(true);
648 }
649}
650
651/*!
652 toggles the menu for the filter/search options

Callers

nothing calls this directly

Calls 3

columnCountMethod · 0.45
modelMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected