! * sorts the selected columns separately of each other in descending order. */
| 3547 | * sorts the selected columns separately of each other in descending order. |
| 3548 | */ |
| 3549 | void SpreadsheetView::sortDescending() { |
| 3550 | const auto& cols = selectedColumns(); |
| 3551 | if (cols.isEmpty() || !hasValues(cols)) |
| 3552 | return; |
| 3553 | |
| 3554 | for (auto* col : cols) |
| 3555 | col->setSuppressDataChangedSignal(true); |
| 3556 | m_spreadsheet->sortColumns(nullptr, cols, false); |
| 3557 | for (auto* col : cols) { |
| 3558 | col->setSuppressDataChangedSignal(false); |
| 3559 | col->setChanged(); |
| 3560 | } |
| 3561 | } |
| 3562 | |
| 3563 | /*! |
| 3564 | * custom sort of all or selected columns in the spreadsheet together by allowing |
nothing calls this directly
no test coverage detected