| 91 | AreaIndex::~AreaIndex() = default; |
| 92 | |
| 93 | void AreaIndex::add(View *view, View *after) |
| 94 | { |
| 95 | Q_D(AreaIndex); |
| 96 | |
| 97 | //we can not add views to the areas that have already been split |
| 98 | if (d->isSplit()) |
| 99 | return; |
| 100 | |
| 101 | if (after) |
| 102 | d->views.insert(d->views.indexOf(after)+1, view); |
| 103 | else |
| 104 | d->views.append(view); |
| 105 | } |
| 106 | |
| 107 | void AreaIndex::remove(View *view) |
| 108 | { |