| 70 | } |
| 71 | |
| 72 | DatapickerView::~DatapickerView() { |
| 73 | // delete all children views here, its own view will be deleted in ~AbstractPart() |
| 74 | for (const auto* aspect : m_datapicker->children<AbstractAspect>(AbstractAspect::ChildIndexFlag::IncludeHidden)) { |
| 75 | for (const auto* child : aspect->children<AbstractAspect>()) { |
| 76 | const auto* part = dynamic_cast<const AbstractPart*>(child); |
| 77 | if (part) |
| 78 | part->deleteView(); |
| 79 | } |
| 80 | const auto* part = dynamic_cast<const AbstractPart*>(aspect); |
| 81 | if (part) |
| 82 | part->deleteView(); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | void DatapickerView::fillToolBar(QToolBar* toolBar) { |
| 87 | auto* view = static_cast<DatapickerImageView*>(m_datapicker->image()->view()); |
nothing calls this directly
no test coverage detected