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

Method removeChildren

src/backend/worksheet/TreeModel.cpp:83–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool TreeItem::removeChildren(int position, int count) {
84 if (position < 0 || position + count > childItems.size())
85 return false;
86
87 for (int row = 0; row < count; ++row)
88 delete childItems.takeAt(position);
89
90 return true;
91}
92
93bool TreeItem::removeColumns(int position, int columns) {
94 if (position < 0 || position + columns > itemData.size())

Callers 1

removeRowsMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected