! selects the column \c column in the speadsheet view . */
| 3647 | selects the column \c column in the speadsheet view . |
| 3648 | */ |
| 3649 | void 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 . |