<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: Plasma.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />davidedmundson requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D24023">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Otherwise we leave a context dangling with no engine, which is weird.</p>

<p>I suspect it was done like this as we need the context to outlive the<br />
lifespan of the superclass QQmlObject, but we can use the QObject<br />
child-parent for that.</p>

<p>It shouldn't have any negative behavioural changes as this matches the<br />
behaviour of QmlObject which all original code was once ported from.</p>

<p>See also <a href="https://bugreports.qt.io/browse/QTBUG-78326" class="remarkup-link" target="_blank" rel="noreferrer">https://bugreports.qt.io/browse/QTBUG-78326</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Ran Qt5.14<br />
Locked the screen<br />
Unlocked the screen, successfully</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R296 KDeclarative</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24023">https://phabricator.kde.org/D24023</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kdeclarative/qmlobjectsharedengine.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>