MCPcopy Create free account
hub / github.com/KDE/kwin / loadFromModule

Method loadFromModule

src/effect/offscreenquickview.cpp:718–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718void 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
733QQuickItem *OffscreenQuickScene::rootItem() const
734{

Callers

nothing calls this directly

Calls 3

qmlEngineMethod · 0.45
resetMethod · 0.45
createItemMethod · 0.45

Tested by

no test coverage detected