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

Method setCellsSelected

src/frontend/matrix/MatrixView.cpp:504–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504void MatrixView::setCellsSelected(int first_row, int first_col, int last_row, int last_col) {
505 const auto& top_left = m_model->index(first_row, first_col);
506 const auto& bottom_right = m_model->index(last_row, last_col);
507 m_tableView->selectionModel()->select(QItemSelection(top_left, bottom_right), QItemSelectionModel::SelectCurrent);
508}
509
510/*!
511 Determine the current cell (-1 if no cell is designated as the current)

Callers 1

Calls 3

selectionModelMethod · 0.80
QItemSelectionClass · 0.50
indexMethod · 0.45

Tested by 1