MCPcopy Create free account
hub / github.com/KDE/kdevelop / deleteChildren

Method deleteChildren

kdevplatform/debugger/util/treeitem.cpp:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void TreeItem::deleteChildren()
104{
105 QVector<TreeItem*> copy = childItems;
106 clear();
107 // Only delete the children after removing them
108 // from model. Otherwise, the model will touch
109 // deleted things, with undefined results.
110 qDeleteAll(copy);
111}
112
113void TreeItem::clear()
114{

Callers 2

stateChangedMethod · 0.80
handleMethod · 0.80

Calls 1

clearFunction · 0.50

Tested by

no test coverage detected