| 64 | } |
| 65 | |
| 66 | QWidget* View::initializeWidget(QWidget* parent) |
| 67 | { |
| 68 | Q_D(View); |
| 69 | |
| 70 | Q_ASSERT(!d->widget); |
| 71 | // widget is a raw pointer cache that prevents repeated weak pointer access |
| 72 | auto* const widget = createWidget(parent); |
| 73 | d->widget = widget; |
| 74 | return widget; |
| 75 | } |
| 76 | |
| 77 | void View::setSharedWidget(QWidget* widget) |
| 78 | { |
no outgoing calls