! Determine the current cell (-1 if no cell is designated as the current) */
| 511 | Determine the current cell (-1 if no cell is designated as the current) |
| 512 | */ |
| 513 | void MatrixView::getCurrentCell(int* row, int* col) const { |
| 514 | const auto& index = m_tableView->selectionModel()->currentIndex(); |
| 515 | if (index.isValid()) { |
| 516 | *row = index.row(); |
| 517 | *col = index.column(); |
| 518 | } else { |
| 519 | *row = -1; |
| 520 | *col = -1; |
| 521 | } |
| 522 | } |
| 523 | |
| 524 | bool MatrixView::eventFilter(QObject* watched, QEvent* event) { |
| 525 | if (event->type() == QEvent::ContextMenu) { |
nothing calls this directly
no test coverage detected