| 1004 | } |
| 1005 | |
| 1006 | void MatrixView::clearSelectedRows() { |
| 1007 | int first = firstSelectedRow(); |
| 1008 | int last = lastSelectedRow(); |
| 1009 | if (first < 0) |
| 1010 | return; |
| 1011 | |
| 1012 | WAIT_CURSOR; |
| 1013 | m_matrix->beginMacro(i18n("%1: clear selected rows(s)", m_matrix->name())); |
| 1014 | for (int i = first; i <= last; i++) { |
| 1015 | if (isRowSelected(i)) |
| 1016 | m_matrix->clearRow(i); |
| 1017 | } |
| 1018 | m_matrix->endMacro(); |
| 1019 | RESET_CURSOR; |
| 1020 | } |
| 1021 | |
| 1022 | void MatrixView::changeZoom(QAction* action) { |
| 1023 | if (action == zoomInAction) |
nothing calls this directly
no test coverage detected