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

Method expanded

kdevplatform/debugger/util/treemodel.cpp:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void TreeModel::expanded(const QModelIndex &index)
170{
171 TreeItem* item = itemForIndex(index);
172 QObject::connect(item, &TreeItem::allChildrenFetched, this, &TreeModel::itemChildrenReady);
173 if (item->hasMore() && item->childCount() == 1)
174 item->fetchMoreChildren();
175 else
176 emit itemChildrenReady();
177 item->setExpanded(true);
178}
179
180void TreeModel::collapsed(const QModelIndex &index)
181{

Callers 15

slotExpandedMethod · 0.45
testQCharMethod · 0.45
testQStringMethod · 0.45
testQByteArrayMethod · 0.45
testQListContainerMethod · 0.45
testQListPODMethod · 0.45
testQMapIntMethod · 0.45
testQMapStringMethod · 0.45
testQMapStringBoolMethod · 0.45
testQHashIntMethod · 0.45
testQHashStringMethod · 0.45
testQSetIntMethod · 0.45

Calls 3

childCountMethod · 0.45
fetchMoreChildrenMethod · 0.45
setExpandedMethod · 0.45

Tested by 15

testQCharMethod · 0.36
testQStringMethod · 0.36
testQByteArrayMethod · 0.36
testQListContainerMethod · 0.36
testQListPODMethod · 0.36
testQMapIntMethod · 0.36
testQMapStringMethod · 0.36
testQMapStringBoolMethod · 0.36
testQHashIntMethod · 0.36
testQHashStringMethod · 0.36
testQSetIntMethod · 0.36
testQSetStringMethod · 0.36