| 43 | QuickItemModel::~QuickItemModel() = default; |
| 44 | |
| 45 | void QuickItemModel::setWindow(QQuickWindow *window) |
| 46 | { |
| 47 | beginResetModel(); |
| 48 | clear(); |
| 49 | m_window = window; |
| 50 | populateFromItem(window->contentItem()); |
| 51 | endResetModel(); |
| 52 | } |
| 53 | |
| 54 | QVariant QuickItemModel::data(const QModelIndex &index, int role) const |
| 55 | { |
no outgoing calls