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

Method insertColumns

src/backend/worksheet/TreeModel.cpp:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool TreeItem::insertColumns(int position, int columns) {
67 if (position < 0 || position > itemData.size())
68 return false;
69
70 for (int column = 0; column < columns; ++column)
71 itemData.insert(position, QVariant());
72
73 for (auto* childItem : childItems)
74 childItem->insertColumns(position, columns);
75
76 return true;
77}
78
79TreeItem* TreeItem::parent() {
80 return parentItem;

Callers

nothing calls this directly

Calls 2

insertMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected