| 59 | } |
| 60 | |
| 61 | ViewBarContainer::~ViewBarContainer() |
| 62 | { |
| 63 | Q_D(ViewBarContainer); |
| 64 | |
| 65 | // unparent any viewbars which may still exist |
| 66 | // other code is still tracking those |
| 67 | for (int i = d->layout->count(); i > 0; --i) { |
| 68 | auto widget = d->layout->itemAt(i-1)->widget(); |
| 69 | if (widget) { |
| 70 | d->layout->removeWidget(widget); |
| 71 | widget->setParent(nullptr); |
| 72 | widget->hide(); |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | void ViewBarContainer::addViewBar(QWidget* viewBar) |
| 78 | { |
nothing calls this directly
no test coverage detected