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

Method insertChild

kdevplatform/debugger/util/treeitem.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void TreeItem::insertChild(int position, TreeItem *child, bool initial)
64{
65 QModelIndex index = model_->indexForItem(this, 0);
66
67 if (!initial)
68 model_->beginInsertRows(index, position, position);
69 childItems.insert(position, child);
70 if (!initial)
71 model_->endInsertRows();
72}
73
74void TreeItem::reportChange()
75{

Callers 1

addPotentialOverrideMethod · 0.80

Calls 2

indexForItemMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected