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

Method unsplit

kdevplatform/sublime/areaindex.cpp:147–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void AreaIndex::unsplit(AreaIndex *childToRemove)
148{
149 Q_D(AreaIndex);
150
151 if (!d->isSplit())
152 return;
153
154 AreaIndex *other = d->first == childToRemove ? d->second : d->first;
155 other->moveViewsTo(this);
156 d->orientation = other->orientation();
157 d->first = nullptr;
158 d->second = nullptr;
159 other->copyChildrenTo(this);
160
161 delete other;
162 delete childToRemove;
163}
164
165void AreaIndex::copyChildrenTo(AreaIndex *target)
166{

Callers 3

loadToAreaPrivateFunction · 0.80
removeMethod · 0.80

Calls 4

moveViewsToMethod · 0.80
copyChildrenToMethod · 0.80
isSplitMethod · 0.45
orientationMethod · 0.45

Tested by

no test coverage detected