| 145 | } |
| 146 | |
| 147 | void 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 | |
| 165 | void AreaIndex::copyChildrenTo(AreaIndex *target) |
| 166 | { |
no test coverage detected