| 32 | } |
| 33 | |
| 34 | void benchModelObjectAdded() |
| 35 | { |
| 36 | QQuickView view; |
| 37 | auto root = view.contentItem(); |
| 38 | QuickItemModel model; |
| 39 | model.setWindow(&view); |
| 40 | const auto items = createItems(root); |
| 41 | |
| 42 | QBENCHMARK_ONCE |
| 43 | { |
| 44 | for (auto item : items) { |
| 45 | model.objectAdded(item); |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | void benchModelItemUpdated() |
| 51 | { |
nothing calls this directly
no test coverage detected