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

Method removeRows

src/backend/worksheet/TreeModel.cpp:246–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246bool TreeModel::removeRows(int position, int rows, const QModelIndex& parent) {
247 TreeItem* parentItem = getItem(parent);
248
249 beginRemoveRows(parent, position, position + rows - 1);
250 bool success = parentItem->removeChildren(position, rows);
251 endRemoveRows();
252
253 return success;
254}
255
256int TreeModel::rowCount(const QModelIndex& parent) const {
257 const auto* parentItem = getItem(parent);

Callers 2

Calls 1

removeChildrenMethod · 0.80

Tested by

no test coverage detected