| 502 | } |
| 503 | |
| 504 | void 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) |