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

Method insertRows

src/backend/spreadsheet/Spreadsheet.cpp:311–321  ·  view source on GitHub ↗

! * Inserts \c count rows before the \c before row index in the spreadsheet. * @param count The number of rows to insert. * @param before The row index before which the rows are inserted. */

Source from the content-addressed store, hash-verified

309 * @param before The row index before which the rows are inserted.
310 */
311void Spreadsheet::insertRows(int before, int count) {
312 if (count < 1 || before < 0 || before > rowCount())
313 return;
314
315 WAIT_CURSOR;
316 beginMacro(i18np("%1: insert 1 row", "%1: insert %2 rows", name(), count));
317 for (auto* col : children<Column>())
318 col->insertRows(before, count);
319 endMacro();
320 RESET_CURSOR;
321}
322
323/*!
324 * Inserts \c count rows before the last row index in the spreadsheet.

Callers 1

insertColumnsMethod · 0.45

Calls 1

rowCountFunction · 0.85

Tested by

no test coverage detected