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

Method moveColumn

src/backend/spreadsheet/Spreadsheet.cpp:743–750  ·  view source on GitHub ↗

! * Move column at \c from index to \c to index. * @param from The current index of the column. * @param to The future index of the column. */

Source from the content-addressed store, hash-verified

741 * @param to The future index of the column.
742 */
743void Spreadsheet::moveColumn(int from, int to) {
744 const auto& columns = children<Column>();
745 auto* col = columns.at(from);
746 beginMacro(i18n("%1: move column %2 from position %3 to %4.", name(), col->name(), from + 1, to + 1));
747 col->remove();
748 insertChildBefore(col, columns.at(to));
749 endMacro();
750}
751
752/*!
753 * Clears all values in the specified columns.

Callers 1

Calls 2

nameMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected