| 716 | } |
| 717 | |
| 718 | void OffscreenQuickScene::loadFromModule(const QString &uri, const QString &typeName, const QVariantMap &initialProperties) |
| 719 | { |
| 720 | if (!d->qmlComponent) { |
| 721 | d->qmlComponent = std::make_unique<QQmlComponent>(effects->qmlEngine()); |
| 722 | } |
| 723 | |
| 724 | d->qmlComponent->loadFromModule(uri, typeName); |
| 725 | if (d->qmlComponent->isError()) { |
| 726 | qCWarning(LIBKWINEFFECTS).nospace() << "Failed to load effect quick view " << (uri + u'.' + typeName) << ": " << d->qmlComponent->errors(); |
| 727 | d->qmlComponent.reset(); |
| 728 | return; |
| 729 | } |
| 730 | d->createItem(initialProperties); |
| 731 | } |
| 732 | |
| 733 | QQuickItem *OffscreenQuickScene::rootItem() const |
| 734 | { |
nothing calls this directly
no test coverage detected