151
152
QModelIndex anotherPart = partIndex.child(i, 0);
152
153
Q_ASSERT(anotherPart.isValid()); // guaranteed by the MVC
153
154
QObject *res = factory->create(anotherPart, messageView, recursionDepth + 1, filteredForEmbedding(options));
157
QMetaObject::invokeMethod(messageView, "addAttachmentItem", Q_ARG(QVariant, QVariant::fromValue(qobject_cast<QQuickItem *>(res))));