MCPcopy Create free account
hub / github.com/KDE/labplot / sortDescending

Method sortDescending

src/frontend/spreadsheet/SpreadsheetView.cpp:3549–3561  ·  view source on GitHub ↗

! * sorts the selected columns separately of each other in descending order. */

Source from the content-addressed store, hash-verified

3547 * sorts the selected columns separately of each other in descending order.
3548 */
3549void 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

Callers

nothing calls this directly

Calls 4

isEmptyMethod · 0.45
sortColumnsMethod · 0.45
setChangedMethod · 0.45

Tested by

no test coverage detected