! Return whether a cell is selected */
| 1336 | Return whether a cell is selected |
| 1337 | */ |
| 1338 | bool SpreadsheetView::isCellSelected(int row, int col) const { |
| 1339 | if (row < 0 || col < 0 || row >= m_spreadsheet->rowCount() || col >= m_spreadsheet->columnCount()) |
| 1340 | return false; |
| 1341 | |
| 1342 | return m_tableView->selectionModel()->isSelected(m_model->index(row, col)); |
| 1343 | } |
| 1344 | |
| 1345 | /*! |
| 1346 | Get the complete set of selected rows. |
nothing calls this directly
no test coverage detected