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

Method removeEmptyRows

src/backend/spreadsheet/Spreadsheet.cpp:341–354  ·  view source on GitHub ↗

! * Removes all rows in the spreadsheet in which the value of one or more of its columns is missing/empty. */

Source from the content-addressed store, hash-verified

339 * Removes all rows in the spreadsheet in which the value of one or more of its columns is missing/empty.
340 */
341void Spreadsheet::removeEmptyRows() {
342 const auto& rows = rowsWithMissingValues();
343 if (rows.isEmpty())
344 return;
345
346 WAIT_CURSOR;
347 beginMacro(i18n("%1: remove rows with missing values", name()));
348
349 for (int row = rows.count() - 1; row >= 0; --row)
350 removeRows(rows.at(row), 1);
351
352 endMacro();
353 RESET_CURSOR;
354}
355
356/*!
357 * Masks all rows in the spreadsheet in which the value of one or more of its columns is missing/empty.

Callers 1

Calls 2

isEmptyMethod · 0.45
countMethod · 0.45

Tested by 1