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

Method insertChildren

src/backend/worksheet/TreeModel.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool TreeItem::insertChildren(int position, int count, int columns) {
54 if (position < 0 || position > childItems.size())
55 return false;
56
57 for (int row = 0; row < count; ++row) {
58 QVector<QVariant> childData(columns);
59 auto* childItem = new TreeItem(childData, this);
60 childItems.insert(position, childItem);
61 }
62
63 return true;
64}
65
66bool TreeItem::insertColumns(int position, int columns) {
67 if (position < 0 || position > itemData.size())

Callers 1

insertRowsMethod · 0.80

Calls 2

insertMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected