[configview] Simplify code / workaround Qt5.15 crash
ClosedPublic

Authored by davidedmundson on Apr 5 2020, 5:16 PM.

Details

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

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.Apr 5 2020, 5:16 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 5 2020, 5:16 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
davidedmundson requested review of this revision.Apr 5 2020, 5:16 PM
apol accepted this revision.Apr 5 2020, 6:15 PM
apol added a subscriber: apol.

LGTM

src/plasmaquick/configview.cpp
137

It could make sense to use the opportunity to change to QQmlContext::setContextProperties.

This revision is now accepted and ready to land.Apr 5 2020, 6:15 PM

setContextProprerties

This revision was automatically updated to reflect the committed changes.