| 97 | } |
| 98 | |
| 99 | ContinuousPageWidget::~ContinuousPageWidget() |
| 100 | { |
| 101 | // Drop queued-but-not-started tasks and wait for running ones to finish. |
| 102 | // While we block here the widget is still fully alive, so any in-flight |
| 103 | // task's queued invocation targets a valid object; Qt removes that posted |
| 104 | // event when this QObject is destroyed. |
| 105 | scalePool.clear(); |
| 106 | scalePool.waitForDone(); |
| 107 | } |
| 108 | |
| 109 | void ContinuousPageWidget::applyTheme(const Theme &) |
| 110 | { |