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

Method insertRows

src/backend/worksheet/TreeModel.cpp:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209bool TreeModel::insertRows(int position, int rows, const QModelIndex& parent) {
210 TreeItem* parentItem = getItem(parent);
211 bool success;
212
213 beginInsertRows(parent, position, position + rows - 1);
214 success = parentItem->insertChildren(position, rows, rootItem->columnCount());
215 endInsertRows();
216
217 return success;
218}
219
220QModelIndex TreeModel::parent(const QModelIndex& index) const {
221 if (!index.isValid())

Callers 1

Calls 2

insertChildrenMethod · 0.80
columnCountMethod · 0.45

Tested by

no test coverage detected