D28599: [configview] Simplify code / workaround Qt5.15 crash
davidedmundson updated this revision to Diff 79469. davidedmundson added a comment. setContextProprerties REPOSITORY R242 Plasma Framework (Library) CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D28599?vs=79423&id=79469 BRANCH master REVISION DETAIL https://phabricator.kde.org/D28599 AFFECTED FILES src/plasmaquick/configview.cpp To: davidedmundson, #plasma, apol Cc: apol, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
D28599: [configview] Simplify code / workaround Qt5.15 crash
This revision was automatically updated to reflect the committed changes. Closed by commit R242:0417bf61d53a: [configview] Simplify code / workaround Qt5.15 crash (authored by davidedmundson). REPOSITORY R242 Plasma Framework (Library) CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D28599?vs=79469&id=79470 REVISION DETAIL https://phabricator.kde.org/D28599 AFFECTED FILES src/plasmaquick/configview.cpp To: davidedmundson, #plasma, apol Cc: apol, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
D28599: [configview] Simplify code / workaround Qt5.15 crash
apol accepted this revision. apol added a comment. This revision is now accepted and ready to land. LGTM INLINE COMMENTS > configview.cpp:137 > > + > q->engine()->rootContext()->setContextProperty(QStringLiteral("plasmoid"), > applet.data()->property("_plasma_graphicObject").value()); > + > q->engine()->rootContext()->setContextProperty(QStringLiteral("configDialog"), > q); It could make sense to use the opportunity to change to QQmlContext::setContextProperties. REPOSITORY R242 Plasma Framework (Library) BRANCH master REVISION DETAIL https://phabricator.kde.org/D28599 To: davidedmundson, #plasma, apol Cc: apol, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
D28599: [configview] Simplify code / workaround Qt5.15 crash
davidedmundson created this revision. davidedmundson added a reviewer: Plasma. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. davidedmundson requested review of this revision. REVISION SUMMARY QQmlComponent::beginCreate and completeCreate are useful if you need to set properties on the object explicitly. We're not doing that here, we can just call create. TEST PLAN On Qt5.15 Right click a panel choose edit REPOSITORY R242 Plasma Framework (Library) BRANCH master REVISION DETAIL https://phabricator.kde.org/D28599 AFFECTED FILES src/plasmaquick/configview.cpp To: davidedmundson, #plasma Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns