| 929 | } |
| 930 | |
| 931 | void MatrixView::removeSelectedColumns() { |
| 932 | int first = firstSelectedColumn(); |
| 933 | int last = lastSelectedColumn(); |
| 934 | if (first < 0) |
| 935 | return; |
| 936 | |
| 937 | WAIT_CURSOR; |
| 938 | m_matrix->beginMacro(i18n("%1: remove selected column(s)", m_matrix->name())); |
| 939 | for (int i = last; i >= first; i--) |
| 940 | if (isColumnSelected(i, false)) |
| 941 | m_matrix->removeColumns(i, 1); |
| 942 | m_matrix->endMacro(); |
| 943 | RESET_CURSOR; |
| 944 | } |
| 945 | |
| 946 | void MatrixView::clearSelectedColumns() { |
| 947 | WAIT_CURSOR; |
nothing calls this directly
no test coverage detected