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

Method copyChildrenTo

kdevplatform/sublime/areaindex.cpp:165–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void AreaIndex::copyChildrenTo(AreaIndex *target)
166{
167 Q_D(AreaIndex);
168
169 if (!d->first || !d->second)
170 return;
171 target->d_ptr->first = d->first;
172 target->d_ptr->second = d->second;
173 target->d_ptr->first->setParent(target);
174 target->d_ptr->second->setParent(target);
175
176 d->first = nullptr;
177 d->second = nullptr;
178}
179
180void AreaIndex::moveViewsTo(AreaIndex *target)
181{

Callers 1

unsplitMethod · 0.80

Calls 1

setParentMethod · 0.45

Tested by

no test coverage detected