| 36 | } |
| 37 | |
| 38 | void AppManagerFragment::rowsInserted(const QModelIndex &parent, int first, int last) |
| 39 | { |
| 40 | Q_UNUSED(parent); |
| 41 | Q_UNUSED(last); |
| 42 | |
| 43 | auto node = qvariant_cast<AppNode>(model->index(first, 0).data(Qt::UserRole)); |
| 44 | |
| 45 | ui->apps->setIndexWidget(model->index(first, 0), new AppItem(model, node.id, this)); |
| 46 | } |
| 47 | |
| 48 | void AppManagerFragment::rowsAboutToBeRemoved(const QModelIndex &parent, int first, int last) |
| 49 | { |