| 746 | } |
| 747 | |
| 748 | void MatrixView::clearSelectedCells() { |
| 749 | int first_row = firstSelectedRow(); |
| 750 | if (first_row < 0) |
| 751 | return; |
| 752 | |
| 753 | int first_col = firstSelectedColumn(); |
| 754 | if (first_col < 0) |
| 755 | return; |
| 756 | |
| 757 | int last_row = lastSelectedRow(); |
| 758 | int last_col = lastSelectedColumn(); |
| 759 | |
| 760 | WAIT_CURSOR; |
| 761 | m_matrix->beginMacro(i18n("%1: clear selected cell(s)", m_matrix->name())); |
| 762 | for (int i = first_row; i <= last_row; i++) { |
| 763 | for (int j = first_col; j <= last_col; j++) { |
| 764 | if (isCellSelected(i, j)) |
| 765 | m_matrix->clearCell(i, j); |
| 766 | } |
| 767 | } |
| 768 | m_matrix->endMacro(); |
| 769 | RESET_CURSOR; |
| 770 | } |
| 771 | |
| 772 | class UpdateImageTask : public QRunnable { |
| 773 | public: |
nothing calls this directly
no test coverage detected