| 163 | } |
| 164 | |
| 165 | void 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 | |
| 180 | void AreaIndex::moveViewsTo(AreaIndex *target) |
| 181 | { |