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

Method selectColumn

src/frontend/spreadsheet/SpreadsheetView.cpp:3649–3656  ·  view source on GitHub ↗

! selects the column \c column in the speadsheet view . */

Source from the content-addressed store, hash-verified

3647 selects the column \c column in the speadsheet view .
3648*/
3649void SpreadsheetView::selectColumn(int column) {
3650 const auto& index = m_model->index(0, column);
3651 m_tableView->scrollTo(index);
3652 QItemSelection selection(index, m_model->index(m_spreadsheet->rowCount() - 1, column));
3653 m_suppressSelectionChangedEvent = true;
3654 m_tableView->selectionModel()->select(selection, QItemSelectionModel::Select);
3655 m_suppressSelectionChangedEvent = false;
3656}
3657
3658/*!
3659 deselects the column \c column in the speadsheet view .

Callers 4

reverseSelectionMethod · 0.80
exportImportMethod · 0.80
formulaLocaleMethod · 0.80

Calls 3

selectionModelMethod · 0.80
indexMethod · 0.45
rowCountMethod · 0.45

Tested by 3

exportImportMethod · 0.64
formulaLocaleMethod · 0.64