| 69 | } |
| 70 | |
| 71 | int QuickItemModel::rowCount(const QModelIndex &parent) const |
| 72 | { |
| 73 | if (parent.column() == 1) |
| 74 | return 0; |
| 75 | |
| 76 | QQuickItem *parentItem = reinterpret_cast<QQuickItem *>(parent.internalPointer()); |
| 77 | |
| 78 | return m_parentChildMap.value(parentItem).size(); |
| 79 | } |
| 80 | |
| 81 | QModelIndex QuickItemModel::parent(const QModelIndex &child) const |
| 82 | { |